From d0a4741392a3df0fb4083e12bef0cef14af439e1 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Mon, 17 Oct 2022 09:36:18 -0400 Subject: [PATCH] Fix LIT test func-attr.c added by https://reviews.llvm.org/D135097. Differential Revision: https://reviews.llvm.org/D136084 --- clang/test/CodeGen/func-attr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/test/CodeGen/func-attr.c b/clang/test/CodeGen/func-attr.c index e7c60f2..74e24b5 100644 --- a/clang/test/CodeGen/func-attr.c +++ b/clang/test/CodeGen/func-attr.c @@ -1,12 +1,12 @@ -// RUN: %clang -c -ffast-math -emit-llvm -S -o - %s \ -// RUN: | FileCheck %s +// RUN: %clang -c -target x86_64 -ffast-math \ +// RUN: -emit-llvm -S -o - %s | FileCheck %s -// RUN: %clang -c -funsafe-math-optimizations -emit-llvm -S -o - %s \ -// RUN: | FileCheck %s +// RUN: %clang -c -target x86_64 -funsafe-math-optimizations \ +// RUN: -emit-llvm -S -o - %s | FileCheck %s float foo(float a, float b) { return a+b; } -// CHECK: define{{.*}} float @foo(float noundef %{{.*}}, float noundef %{{.*}}) [[FAST_ATTRS:#[0-9]+]] +// CHECK: define{{.*}} float @foo(float noundef %{{.*}}, float noundef %{{.*}}){{.*}} [[FAST_ATTRS:#[0-9]+]] // CHECK: attributes [[FAST_ATTRS]] = { {{.*}} "approx-func-fp-math"="true" {{.*}} "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" {{.*}} "unsafe-fp-math"="true" -- 2.7.4