[llvm] [SPIRV][HLSL] Add HLSL intrinsic tests (PR #86844)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 12:54:27 PDT 2024


================
@@ -0,0 +1,20 @@
+; RUN: llc -O0 -mtriple=spirv-unknown-linux %s -o - | FileCheck %s
+
+; CHECK: OpExtInstImport "GLSL.std.450"
+
+define noundef float @round_float(float noundef %a) {
+entry:
+; CHECK: %[[#]] = OpExtInst %[[#]] %[[#]] Round %[[#]]
----------------
farzonl wrote:

I'll fix up this test case to use the right intrinsic in the next revision.

https://github.com/llvm/llvm-project/pull/86844


More information about the llvm-commits mailing list