blob: a9e6ba2c27dd78647a7559264486abe35f3d9501 [file] [log] [blame]
Dan Gohman28beeea2007-08-15 13:36:28 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep movzx | count 1
2; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep movsx | count 1
Chris Lattnere4e49132005-12-14 19:24:08 +00003
4%G1 = internal global ubyte 0 ; <ubyte*> [#uses=1]
5%G2 = internal global sbyte 0 ; <sbyte*> [#uses=1]
6
7implementation ; Functions:
8
9short %test1() { ;; one zext
10 %tmp.0 = load ubyte* %G1 ; <ubyte> [#uses=1]
11 %tmp.3 = cast ubyte %tmp.0 to short ; <short> [#uses=1]
12 ret short %tmp.3
13}
14
15short %test2() { ;; one sext
16 %tmp.0 = load sbyte* %G2 ; <sbyte> [#uses=1]
17 %tmp.3 = cast sbyte %tmp.0 to short ; <short> [#uses=1]
18 ret short %tmp.3
19}