2019-08-21 07:47:19 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
|
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() {
|
2019-08-21 07:47:19 +08:00
|
|
|
; CHECK-LABEL: test:
|
|
|
|
; CHECK: # %bb.0:
|
|
|
|
; CHECK-NEXT: movl x, %eax
|
|
|
|
; CHECK-NEXT: addl %eax, %eax
|
|
|
|
; CHECK-NEXT: retl
|
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
|
|
|
|