Skip to content

Commit

Permalink
Fix logf128 tests to allow negative NaNs from (#104929)
Browse files Browse the repository at this point in the history
  • Loading branch information
MDevereau committed Aug 22, 2024
1 parent 378daa6 commit ccb2b79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/test/Transforms/InstSimplify/ConstProp/logf128.ll
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ define fp128 @log_e_smallest_number_larger_than_one(){

define fp128 @log_e_negative_2(){
; CHECK-LABEL: define fp128 @log_e_negative_2() {
; CHECK-NEXT: ret fp128 0xL00000000000000007FFF800000000000
; CHECK-NEXT: ret fp128 0xL0000000000000000{{[7|F]}}FFF800000000000
;
%A = call fp128 @llvm.log.f128(fp128 noundef 0xL0000000000000000C000000000000000)
ret fp128 %A
Expand Down Expand Up @@ -104,7 +104,7 @@ define fp128 @log_e_infinity(){

define fp128 @log_e_negative_infinity(){
; CHECK-LABEL: define fp128 @log_e_negative_infinity() {
; CHECK-NEXT: ret fp128 0xL00000000000000007FFF800000000000
; CHECK-NEXT: ret fp128 0xL0000000000000000{{[7|F]}}FFF800000000000
;
%A = call fp128 @llvm.log.f128(fp128 noundef 0xL0000000000000000FFFF000000000000)
ret fp128 %A
Expand All @@ -120,7 +120,7 @@ define fp128 @log_e_nan(){

define <2 x fp128> @log_e_negative_2_vector(){
; CHECK-LABEL: define <2 x fp128> @log_e_negative_2_vector() {
; CHECK-NEXT: ret <2 x fp128> <fp128 0xL00000000000000007FFF800000000000, fp128 0xL00000000000000007FFF800000000000>
; CHECK-NEXT: ret <2 x fp128> <fp128 0xL0000000000000000{{[7|F]}}FFF800000000000, fp128 0xL0000000000000000{{[7|F]}}FFF800000000000>
;
%A = call <2 x fp128> @llvm.log.v2f128(<2 x fp128> <fp128 0xL0000000000000000C000000000000000, fp128 0xL0000000000000000C000000000000001>)
ret <2 x fp128> %A
Expand Down

1 comment on commit ccb2b79

@cjappl
Copy link
Contributor

@cjappl cjappl commented on ccb2b79 Aug 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (might) be failing builds, example:

https://lab.llvm.org/buildbot/#/builders/76/builds/2137

Would you take a look?

Please sign in to comment.