llvm/test/CodeGen/X86/rdrand.ll: Relax expression corresponding to Win64 CC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2012-07-12 10:22:57 +00:00
parent 6d0044a455
commit 223875e3f8

View File

@ -11,7 +11,7 @@ define i32 @_rdrand16_step(i16* %random_val) {
ret i32 %isvalid
; CHECK: _rdrand16_step:
; CHECK: rdrandw %ax
; CHECK: movw %ax, (%rdi)
; CHECK: movw %ax, (%r[[A0:di|cx]])
; CHECK: movzwl %ax, %ecx
; CHECK: movl $1, %eax
; CHECK: cmovael %ecx, %eax
@ -25,10 +25,10 @@ define i32 @_rdrand32_step(i32* %random_val) {
%isvalid = extractvalue {i32, i32} %call, 1
ret i32 %isvalid
; CHECK: _rdrand32_step:
; CHECK: rdrandl %ecx
; CHECK: movl %ecx, (%rdi)
; CHECK: rdrandl %e[[T0:[a-z]+]]
; CHECK: movl %e[[T0]], (%r[[A0]])
; CHECK: movl $1, %eax
; CHECK: cmovael %ecx, %eax
; CHECK: cmovael %e[[T0]], %eax
; CHECK: ret
}
@ -39,9 +39,9 @@ define i32 @_rdrand64_step(i64* %random_val) {
%isvalid = extractvalue {i64, i32} %call, 1
ret i32 %isvalid
; CHECK: _rdrand64_step:
; CHECK: rdrandq %rcx
; CHECK: movq %rcx, (%rdi)
; CHECK: rdrandq %r[[T1:[[a-z]+]]
; CHECK: movq %r[[T1]], (%r[[A0]])
; CHECK: movl $1, %eax
; CHECK: cmovael %ecx, %eax
; CHECK: cmovael %e[[T1]], %eax
; CHECK: ret
}