Skip to content

Commit d037089

Browse files
committed
[InstSimplify] Add pre-commit tests. NFC.
1 parent 2172a5e commit d037089

File tree

1 file changed

+12
-0
lines changed
  • llvm/test/Transforms/InstSimplify

1 file changed

+12
-0
lines changed

llvm/test/Transforms/InstSimplify/fcmp.ll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,15 @@ define i1 @poison2(float %x) {
1616
%v = fcmp ueq float %x, poison
1717
ret i1 %v
1818
}
19+
20+
define i1 @pr130408(x86_fp80 %x) {
21+
; CHECK-LABEL: @pr130408(
22+
; CHECK-NEXT: ret i1 true
23+
;
24+
%bits = bitcast x86_fp80 %x to i80
25+
%masked = and i80 %bits, -604444463063240877801473
26+
%or = or i80 %masked, 302194561415509874573312
27+
%fp = bitcast i80 %or to x86_fp80
28+
%res = fcmp uno x86_fp80 %fp, 0xK00000000000000000000
29+
ret i1 %res
30+
}

0 commit comments

Comments
 (0)