xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/micromips-directives.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; This test checks if the '.set [no]micromips' directives
2*9880d681SAndroid Build Coastguard Worker; are emitted before a function's entry label.
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+micromips %s -o - | \
5*9880d681SAndroid Build Coastguard Worker; RUN:   FileCheck %s -check-prefix=CHECK-MM
6*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=-micromips %s -o - | \
7*9880d681SAndroid Build Coastguard Worker; RUN:   FileCheck %s -check-prefix=CHECK-NO-MM
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine i32 @main() nounwind {
10*9880d681SAndroid Build Coastguard Workerentry:
11*9880d681SAndroid Build Coastguard Worker  ret i32 0
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker; CHECK-MM: .set micromips
15*9880d681SAndroid Build Coastguard Worker; CHECK-NO-MM: .set nomicromips
16*9880d681SAndroid Build Coastguard Worker; CHECK: main:
17