[clang] 2cd080c - [X86] rdrand-builtins.c - add 32-bit target coverage and enable -Wall/-Werror
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Sat May 7 06:37:54 PDT 2022
Author: Simon Pilgrim
Date: 2022-05-07T14:35:42+01:00
New Revision: 2cd080c884a3dd1fc673f02afd48bfe9ba01ce89
URL: https://github.com/llvm/llvm-project/commit/2cd080c884a3dd1fc673f02afd48bfe9ba01ce89
DIFF: https://github.com/llvm/llvm-project/commit/2cd080c884a3dd1fc673f02afd48bfe9ba01ce89.diff
LOG: [X86] rdrand-builtins.c - add 32-bit target coverage and enable -Wall/-Werror
Added:
Modified:
clang/test/CodeGen/X86/rdrand-builtins.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/X86/rdrand-builtins.c b/clang/test/CodeGen/X86/rdrand-builtins.c
index f85624c643f9..4eb17a400fa8 100644
--- a/clang/test/CodeGen/X86/rdrand-builtins.c
+++ b/clang/test/CodeGen/X86/rdrand-builtins.c
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -target-feature +rdrnd -target-feature +rdseed -emit-llvm -o - %s | FileCheck %s
-
+// RUN: %clang_cc1 -no-opaque-pointers -ffreestanding %s -triple=x86_64-unknown-unknown -target-feature +rdrnd -target-feature +rdseed -emit-llvm -o - -Wall -Werror | FileCheck %s --check-prefixes=CHECK,X64
+// RUN: %clang_cc1 -no-opaque-pointers -ffreestanding %s -triple=i386-unknown-unknown -target-feature +rdrnd -target-feature +rdseed -emit-llvm -o - -Wall -Werror | FileCheck %s --check-prefixes=CHECK
#include <immintrin.h>
@@ -20,9 +20,9 @@ int rdrand32(unsigned *p) {
#if __x86_64__
int rdrand64(unsigned long long *p) {
return _rdrand64_step(p);
-// CHECK: @rdrand64
-// CHECK: call { i64, i32 } @llvm.x86.rdrand.64
-// CHECK: store i64
+// X64: @rdrand64
+// X64: call { i64, i32 } @llvm.x86.rdrand.64
+// X64: store i64
}
#endif
@@ -43,8 +43,8 @@ int rdseed32(unsigned *p) {
#if __x86_64__
int rdseed64(unsigned long long *p) {
return _rdseed64_step(p);
-// CHECK: @rdseed64
-// CHECK: call { i64, i32 } @llvm.x86.rdseed.64
-// CHECK: store i64
+// X64: @rdseed64
+// X64: call { i64, i32 } @llvm.x86.rdseed.64
+// X64: store i64
}
#endif
More information about the cfe-commits
mailing list