File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
llvm/test/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3697,3 +3697,27 @@ define i1 @signbit_bitcast_fpext_extra_use(float %x, i64* %p) {
3697
3697
%r = icmp slt i64 %b , 0
3698
3698
ret i1 %r
3699
3699
}
3700
+
3701
+ define i1 @signbit_bitcast_fpext_ppc_fp128 (float %x ) {
3702
+ ; CHECK-LABEL: @signbit_bitcast_fpext_ppc_fp128(
3703
+ ; CHECK-NEXT: [[TMP1:%.*]] = bitcast float [[X:%.*]] to i32
3704
+ ; CHECK-NEXT: [[S4:%.*]] = icmp slt i32 [[TMP1]], 0
3705
+ ; CHECK-NEXT: ret i1 [[S4]]
3706
+ ;
3707
+ %s2 = fpext float %x to ppc_fp128
3708
+ %s3 = bitcast ppc_fp128 %s2 to i128
3709
+ %s4 = icmp slt i128 %s3 , 0
3710
+ ret i1 %s4
3711
+ }
3712
+
3713
+ define i1 @signbit_bitcast_fptrunc_ppc_fp128 (ppc_fp128 %x ) {
3714
+ ; CHECK-LABEL: @signbit_bitcast_fptrunc_ppc_fp128(
3715
+ ; CHECK-NEXT: [[TMP1:%.*]] = bitcast ppc_fp128 [[X:%.*]] to i128
3716
+ ; CHECK-NEXT: [[S4:%.*]] = icmp slt i128 [[TMP1]], 0
3717
+ ; CHECK-NEXT: ret i1 [[S4]]
3718
+ ;
3719
+ %s2 = fptrunc ppc_fp128 %x to float
3720
+ %s3 = bitcast float %s2 to i32
3721
+ %s4 = icmp slt i32 %s3 , 0
3722
+ ret i1 %s4
3723
+ }
You can’t perform that action at this time.
0 commit comments