[PATCH] D142583: [SPIR] Add support for __arithmetic_fence builtin for SPIR target.
Zahira Ammarguellat via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 26 09:21:09 PST 2023
zahiraam added inline comments.
================
Comment at: clang/test/CodeGen/arithmetic-fence-builtin.c:73
int subit(float a, float b, float *fp) {
- // CHECKFAST: define {{.*}}@subit(float noundef %a, float noundef %b{{.*}}
+ // CHECKPRECISE: define {{.*}}@subit(float noundef %a, float noundef %b{{.*}}
*fp = __arithmetic_fence(a - b);
----------------
bader wrote:
> Why is this check removed for SPIR target?
Added.
================
Comment at: clang/test/CodeGen/arithmetic-fence-builtin.c:74
int subit(float a, float b, float *fp) {
- // CHECKFAST: define {{.*}}@subit(float noundef %a, float noundef %b{{.*}}
+ // CHECKPRECISE: define {{.*}}@subit(float noundef %a, float noundef %b{{.*}}
*fp = __arithmetic_fence(a - b);
----------------
bader wrote:
> What is different for SPIR target here?
The RUN at line 16 with -DFAST would generate a warning: "#pragma float_control is not supported on this target". That's why I separated that check from the others.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142583/new/
https://reviews.llvm.org/D142583
More information about the cfe-commits
mailing list