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 {
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]
15 ; MM: # %bb.0: # %entry
16 ; MM-NEXT: break # encoding: [0x00,0x00,0x00,0x07]
17 ; MM-NEXT: jrc $ra # encoding: [0x45,0xbf]
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]
26 ; MMR6: # %bb.0: # %entry
27 ; MMR6-NEXT: break # encoding: [0x00,0x00,0x00,0x07]
28 ; MMR6-NEXT: jrc $ra # encoding: [0x45,0xbf]
30 tail call void @llvm.trap( )
34 declare void @llvm.trap() nounwind