xref: /aosp_15_r20/external/llvm/test/Assembler/alignstack.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; RUN: verify-uselistorder %s
3*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
4*9880d681SAndroid Build Coastguard Workertarget triple = "i386-apple-darwin10.0"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine void @test1() nounwind {
7*9880d681SAndroid Build Coastguard Worker; CHECK: test1
8*9880d681SAndroid Build Coastguard Worker; CHECK: sideeffect
9*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: alignstack
10*9880d681SAndroid Build Coastguard Worker	tail call void asm sideeffect "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
11*9880d681SAndroid Build Coastguard Worker	ret void
12*9880d681SAndroid Build Coastguard Worker; CHECK: ret
13*9880d681SAndroid Build Coastguard Worker}
14*9880d681SAndroid Build Coastguard Workerdefine void @test2() nounwind {
15*9880d681SAndroid Build Coastguard Worker; CHECK: test2
16*9880d681SAndroid Build Coastguard Worker; CHECK: sideeffect
17*9880d681SAndroid Build Coastguard Worker; CHECK: alignstack
18*9880d681SAndroid Build Coastguard Worker	tail call void asm sideeffect alignstack "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
19*9880d681SAndroid Build Coastguard Worker	ret void
20*9880d681SAndroid Build Coastguard Worker; CHECK: ret
21*9880d681SAndroid Build Coastguard Worker}
22*9880d681SAndroid Build Coastguard Workerdefine void @test3() nounwind {
23*9880d681SAndroid Build Coastguard Worker; CHECK: test3
24*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: sideeffect
25*9880d681SAndroid Build Coastguard Worker; CHECK: alignstack
26*9880d681SAndroid Build Coastguard Worker	tail call void asm alignstack "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
27*9880d681SAndroid Build Coastguard Worker	ret void
28*9880d681SAndroid Build Coastguard Worker; CHECK: ret
29*9880d681SAndroid Build Coastguard Worker}
30*9880d681SAndroid Build Coastguard Workerdefine void @test4() nounwind {
31*9880d681SAndroid Build Coastguard Worker; CHECK: test4
32*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: sideeffect
33*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: alignstack
34*9880d681SAndroid Build Coastguard Worker	tail call void asm  "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
35*9880d681SAndroid Build Coastguard Worker	ret void
36*9880d681SAndroid Build Coastguard Worker; CHECK: ret
37*9880d681SAndroid Build Coastguard Worker}
38