relax this test to just check that the lock prefix is encoded properly,
authorChris Lattner <sabre@nondot.org>
Mon, 18 Apr 2011 06:15:35 +0000 (06:15 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 18 Apr 2011 06:15:35 +0000 (06:15 +0000)
and to not rely on the register allocator's arbitrary operand choices.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129690 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/lock-inst-encoding.ll

index 159aeeeca1a20abee9370e93d1d2a4b1d6067fa4..2d10fbc611d02bee2cb390555958dd0d9b95e9db 100644 (file)
@@ -4,8 +4,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
 target triple = "x86_64-apple-darwin10.0.0"
 
 ; CHECK: f0:
-; CHECK: addq %rcx, (%rdi)
-; CHECK: # encoding: [0xf0,0x48,0x01,0x0f]
+; CHECK: addq %{{.*}}, ({{.*}}){{.*}}encoding: [0xf0,
 ; CHECK: ret
 define void @f0(i64* %a0) nounwind {
   %t0 = and i64 1, 1