Debian Codegraph @

clang/test/CodeGen/X86/pr60006.c

raw
1 // RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -emit-llvm -o - -Wall -Werror | FileCheck %s
2 // RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.1 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
3 // RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=i386-apple-darwin -target-feature +sse4.1 -emit-llvm -o - -Wall -Werror | FileCheck %s --check-prefixes=CHECK
4 // RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=i386-apple-darwin -target-feature +sse4.1 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
5
6
7 #include <immintrin.h>
8
9 // Ensure _mm_test_all_ones macro doesn't reuse argument
10 __m128i expensive_call();
11 int pr60006() {
12 // CHECK-LABEL: pr60006
13 // CHECK: call {{.*}} @expensive_call
14 // CHECK-NOT: call {{.*}} @expensive_call
15 // CHECK: call i32 @llvm.x86.sse41.ptestc(<2 x i64> %{{.*}}, <2 x i64> %{{.*}})
16 return _mm_test_all_ones(expensive_call());
17 }