blob: aa0ee5d0746290747be76fd6148ce89b4849b6cc [file] [log] [blame]
Chandler Carruth4177e6f2012-07-02 12:47:22 +00001; RUN: llc < %s -march=x86 | grep "movsbl"
Christopher Lambc59e5212007-08-10 21:48:46 +00002
3@X = global i32 0 ; <i32*> [#uses=1]
4
Chris Lattner26b00002011-06-17 03:14:27 +00005define signext i8 @_Z3fooi(i32 %x) {
Christopher Lambc59e5212007-08-10 21:48:46 +00006entry:
7 store i32 %x, i32* @X, align 4
8 %retval67 = trunc i32 %x to i8 ; <i8> [#uses=1]
9 ret i8 %retval67
Dan Gohman28beeea2007-08-15 13:36:28 +000010}