CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / x86-64-pic-4.ll
index 10428dc6dbef3b249382ce8e7f1e35672459e230..42d08cc2057d3536a3431548ec7224819b865fe0 100644 (file)
@@ -1,11 +1,10 @@
-; RUN: llvm-as < %s | \
-; RUN:   llc -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {movq      a@GOTPCREL(%rip),} %t1
+; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
+; RUN: grep "movq      a@GOTPCREL(%rip)," %t1
 
 @a = global i32 0
 
 define i32 @get_a() {
 entry:
-       %tmp1 = load i32* @a, align 4
+       %tmp1 = load i32, i32* @a, align 4
        ret i32 %tmp1
 }