[libclc] [libclc] Move external-funcs.test to static file and use IR checks for .cl tests (PR #197151)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Wed May 13 02:54:14 PDT 2026
================
@@ -0,0 +1,14 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6
+// REQUIRES: AMDGCN
+
+// RUN: %clang -target %libclc_target -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix
+
+// AMDGCN-LABEL: define hidden noundef float @test_float(
+// AMDGCN-SAME: float noundef [[X:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] {
+// AMDGCN-NEXT: [[ENTRY:.*:]]
+// AMDGCN-NEXT: [[CALL:%.*]] = tail call fastcc float @llvm.fabs.f32(float noundef [[X]]) #[[ATTR2:[0-9]+]]
----------------
wenju-he wrote:
> How did we end up with fastcc on an intrinsic? That's broken? I thought the verifier would complain
thanks. Fixed fastcc. Verifier check will be added later
https://github.com/llvm/llvm-project/pull/197151
More information about the cfe-commits
mailing list