blob: b62d2c61bba7af9d0089e296a7bb9def9fa729a2 [file] [log] [blame]
Christopher Lamb59eada52007-08-10 22:20:57 +00001; RUN: llvm-as < %s | llc -march=x86 | grep {movsbl}
Christopher Lamb0a7c8662007-08-10 21:48:46 +00002
3@X = global i32 0 ; <i32*> [#uses=1]
4
5define i8 @_Z3fooi(i32 %x) signext {
6entry:
7 store i32 %x, i32* @X, align 4
8 %retval67 = trunc i32 %x to i8 ; <i8> [#uses=1]
9 ret i8 %retval67
Dan Gohman8c89a502007-08-15 13:36:28 +000010}