blob: 784f44aa8ecf85ae599eb7c841d5a6b72d38a21a [file] [log] [blame]
Dale Johannesenfd04c742009-10-13 20:46:56 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smithc8eccd12014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Dale Johannesenfd04c742009-10-13 20:46:56 +00003target 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"
4target triple = "i386-apple-darwin10.0"
5
6define void @test1() nounwind {
7; CHECK: test1
8; CHECK: sideeffect
Dale Johannesenf64ea092009-10-21 23:29:12 +00009; CHECK-NOT: alignstack
Dale Johannesenfd04c742009-10-13 20:46:56 +000010 tail call void asm sideeffect "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
11 ret void
12; CHECK: ret
13}
14define void @test2() nounwind {
15; CHECK: test2
16; CHECK: sideeffect
Dale Johannesenf64ea092009-10-21 23:29:12 +000017; CHECK: alignstack
18 tail call void asm sideeffect alignstack "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
Dale Johannesenfd04c742009-10-13 20:46:56 +000019 ret void
20; CHECK: ret
21}
22define void @test3() nounwind {
23; CHECK: test3
24; CHECK-NOT: sideeffect
Dale Johannesenf64ea092009-10-21 23:29:12 +000025; CHECK: alignstack
26 tail call void asm alignstack "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
Dale Johannesenfd04c742009-10-13 20:46:56 +000027 ret void
28; CHECK: ret
29}
30define void @test4() nounwind {
31; CHECK: test4
32; CHECK-NOT: sideeffect
Dale Johannesenf64ea092009-10-21 23:29:12 +000033; CHECK-NOT: alignstack
Dale Johannesenfd04c742009-10-13 20:46:56 +000034 tail call void asm "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
35 ret void
36; CHECK: ret
37}