2013-02-12 23:21:21 +08:00
|
|
|
; RUN: llc < %s -march=x86 | FileCheck %s
|
|
|
|
|
|
|
|
@temp1 = global i64 -77129852189294865, align 8
|
|
|
|
|
|
|
|
define void @foo() nounwind {
|
2015-02-28 05:17:42 +08:00
|
|
|
%x = load i64, i64* @temp1, align 8
|
2013-02-12 23:21:21 +08:00
|
|
|
%s = shl i64 %x, 32
|
|
|
|
%t = trunc i64 %s to i32
|
|
|
|
%z = zext i32 %t to i64
|
|
|
|
store i64 %z, i64* @temp1, align 8
|
2013-02-13 00:07:27 +08:00
|
|
|
; CHECK: movl $0, {{_?}}temp1+4
|
|
|
|
; CHECK: movl $0, {{_?}}temp1
|
2013-02-12 23:21:21 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|