; RUN: llc < %s -march=x86 | FileCheck %s

@temp1 = global i64 -77129852189294865, align 8

define void @foo() nounwind {
  %x = load i64* @temp1, align 8
  %s = shl i64 %x, 32
  %t = trunc i64 %s to i32
  %z = zext i32 %t to i64
  store i64 %z, i64* @temp1, align 8
; CHECK: movl $0, temp1+4
; CHECK: movl $0, temp1
  ret void
}


; RUN: llc < %s -march=x86 | FileCheck %s

@temp1 = global i64 -77129852189294865, align 8

define void @foo() nounwind {
  %x = load i64* @temp1, align 8
  %s = shl i64 %x, 32
  %t = trunc i64 %s to i32
  %z = zext i32 %t to i64
  store i64 %z, i64* @temp1, align 8
; CHECK: movl $0, {{_?}}temp1+4                                                
; CHECK: movl $0, {{_?}}temp1
  ret void
}


Fix the lit test added in r174972
Fix the lit test added in r174972

Patch by: Kevin Schoedel


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@174974 91177308-0d34-0410-b5e6-96231b3b80d8
