mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
ea8b49dff3
rdar://problem/5993888 llvm-svn: 132606
14 lines
347 B
LLVM
14 lines
347 B
LLVM
; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
|
|
; RUN: llc -mtriple=x86_64-win32 < %s | FileCheck %s
|
|
|
|
define i8 @foobar(double %d, double* %x) {
|
|
entry:
|
|
%tmp2 = load double* %x, align 8
|
|
%cmp = fcmp oeq double %tmp2, %d
|
|
%conv3 = zext i1 %cmp to i8
|
|
ret i8 %conv3
|
|
}
|
|
|
|
; test that the load is folded.
|
|
; CHECK: cmpeqsd (%{{rdi|rdx}}), %xmm0
|