[llvm-branch-commits] [mlir] f3e8f27 - [mlir] Fix GPUToNVVM test

Tres Popp via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 15 09:45:21 PST 2020


Author: Tres Popp
Date: 2020-12-15T18:41:16+01:00
New Revision: f3e8f27ca1170c2d74c4f1df51fa66e95588ef1a

URL: https://github.com/llvm/llvm-project/commit/f3e8f27ca1170c2d74c4f1df51fa66e95588ef1a
DIFF: https://github.com/llvm/llvm-project/commit/f3e8f27ca1170c2d74c4f1df51fa66e95588ef1a.diff

LOG: [mlir] Fix GPUToNVVM test

Added: 
    

Modified: 
    mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir b/mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
index af6766bba6f4..21be3b6297e2 100644
--- a/mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
+++ b/mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
@@ -397,14 +397,14 @@ gpu.module @test_module {
 // -----
 
 gpu.module @test_module {
-  // CHECK: llvm.func @__nv_powf(!llvm.float) -> !llvm.float
-  // CHECK: llvm.func @__nv_pow(!llvm.double) -> !llvm.double
+  // CHECK: llvm.func @__nv_powf(!llvm.float, !llvm.float) -> !llvm.float
+  // CHECK: llvm.func @__nv_pow(!llvm.double, !llvm.double) -> !llvm.double
   // CHECK-LABEL: func @gpu_pow
   func @gpu_pow(%arg_f32 : f32, %arg_f64 : f64) -> (f32, f64) {
-    %result32 = std.pow %arg_f32, %arg_f32 : f32
-    // CHECK: llvm.call @__nv_powf(%{{.*}}, %{{.*}}) : (!llvm.float) -> !llvm.float
-    %result64 = std.pow %arg_f64, %arg_f64 : f64
-    // CHECK: llvm.call @__nv_pow(%{{.*}}, %{{.*}}) : (!llvm.double) -> !llvm.double
+    %result32 = std.powf %arg_f32, %arg_f32 : f32
+    // CHECK: llvm.call @__nv_powf(%{{.*}}, %{{.*}}) : (!llvm.float, !llvm.float) -> !llvm.float
+    %result64 = std.powf %arg_f64, %arg_f64 : f64
+    // CHECK: llvm.call @__nv_pow(%{{.*}}, %{{.*}}) : (!llvm.double, !llvm.double) -> !llvm.double
     std.return %result32, %result64 : f32, f64
   }
 }


        


More information about the llvm-branch-commits mailing list