[PATCH] D120150: Constant folding of llvm.amdgcn.trig.preop
    Matt Arsenault via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Nov 16 13:45:10 PST 2022
    
    
  
arsenm added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-intrinsics.ll:5638
 ; CHECK-LABEL: @trig_preop_constfold_0x801fffffffffffff_0(
-; CHECK-NEXT:    [[VAL:%.*]] = call double @llvm.amdgcn.trig.preop.f64(double 0x801FFFFFFFFFFFFF, i32 0)
-; CHECK-NEXT:    ret double [[VAL]]
+; CHECK-NEXT:    ret double 0x3FE45F306DC9C882
 ;
----------------
I feel like the tests are lacking in sample values but coming up with ones to test every point in the table seems exhausting 
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120150/new/
https://reviews.llvm.org/D120150
    
    
More information about the llvm-commits
mailing list