2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-- | not grep leal
|
2006-03-01 07:57:45 +08:00
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
@x = external global i32 ; <i32*> [#uses=1]
|
2006-03-01 07:57:45 +08:00
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
define i32 @test() {
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp.0 = load i32, i32* @x ; <i32> [#uses=1]
|
2008-02-21 15:42:26 +08:00
|
|
|
%tmp.1 = shl i32 %tmp.0, 1 ; <i32> [#uses=1]
|
|
|
|
ret i32 %tmp.1
|
2006-03-01 07:57:45 +08:00
|
|
|
}
|
2008-02-21 15:42:26 +08:00
|
|
|
|