blob: 7313670a1c33146c4e8c39f98d893f03d185bdbc [file] [log] [blame]
Rafael Espindola6b2c7ae2009-03-18 09:38:28 +00001; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=pic > %t
Rafael Espindola152932b2009-03-17 23:43:59 +00002; RUN: grep {movswl %ax, %edi} %t
Rafael Espindola6b2c7ae2009-03-18 09:38:28 +00003; RUN: grep {movw (%rax), %ax} %t
Evan Cheng3927f432009-03-25 20:20:11 +00004; XFAIL: *
Rafael Espindola152932b2009-03-17 23:43:59 +00005
6@x = common global i16 0
7
8define signext i16 @f() nounwind {
9entry:
10 %0 = tail call signext i16 @h() nounwind
11 %1 = sext i16 %0 to i32
12 tail call void @g(i32 %1) nounwind
13 %2 = load i16* @x, align 2
14 ret i16 %2
15}
16
17declare signext i16 @h()
18
19declare void @g(i32)