[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / CodeGen / Mips / llvm-ir / trap.ll
blobf9096b9a4bb9d8d0a20e4ad11a0280e1c8783daf
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=mips-mti-linux-gnu < %s --show-mc-encoding | FileCheck %s --check-prefix=MTI
3 ; RUN: llc -mtriple=mips-mti-linux-gnu -mattr=+micromips < %s --show-mc-encoding | FileCheck %s --check-prefix=MM
4 ; RUN: llc -mtriple=mips-img-linux-gnu < %s --show-mc-encoding | FileCheck %s --check-prefix=IMG
5 ; RUN: llc -mtriple=mips-img-linux-gnu -mattr=+micromips < %s --show-mc-encoding | FileCheck %s --check-prefix=MMR6
7 define void @test() noreturn nounwind  {
8 ; MTI-LABEL: test:
9 ; MTI:       # %bb.0: # %entry
10 ; MTI-NEXT:    break # encoding: [0x00,0x00,0x00,0x0d]
11 ; MTI-NEXT:    jr $ra # encoding: [0x03,0xe0,0x00,0x08]
12 ; MTI-NEXT:    nop # encoding: [0x00,0x00,0x00,0x00]
14 ; MM-LABEL: test:
15 ; MM:       # %bb.0: # %entry
16 ; MM-NEXT:    break # encoding: [0x00,0x00,0x00,0x07]
17 ; MM-NEXT:    jrc $ra # encoding: [0x45,0xbf]
19 ; IMG-LABEL: test:
20 ; IMG:       # %bb.0: # %entry
21 ; IMG-NEXT:    break # encoding: [0x00,0x00,0x00,0x0d]
22 ; IMG-NEXT:    jr $ra # encoding: [0x03,0xe0,0x00,0x08]
23 ; IMG-NEXT:    nop # encoding: [0x00,0x00,0x00,0x00]
25 ; MMR6-LABEL: test:
26 ; MMR6:       # %bb.0: # %entry
27 ; MMR6-NEXT:    break # encoding: [0x00,0x00,0x00,0x07]
28 ; MMR6-NEXT:    jrc $ra # encoding: [0x45,0xbf]
29 entry:
30   tail call void @llvm.trap( )
31   ret void
34 declare void @llvm.trap() nounwind