Skip to content

Commit 8cc33c0

Browse files
boomanaiden154dyung
authored andcommitted
[Clang] Require x86 target for some tests (#209532)
These tests assert behavior about the always-inliner which now requires a target to be present to check function attribute compatibility for inlining. Fix forward for 37b8e76. (cherry picked from commit 97f7658)
1 parent 6e708e7 commit 8cc33c0

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

clang/test/CodeGen/memcmp-inline-builtin-to-asm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
22

3+
// REQUIRES: x86-registered-target
4+
35
// RUN: %clang_cc1 -triple x86_64 -emit-llvm -o - %s | opt -S -passes=verify | FileCheck %s
46
//
57
// Verifies that clang detects memcmp inline version and uses it instead of the builtin.

clang/test/CodeGen/memcpy-inline-builtin.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
22

3+
// REQUIRES: x86-registered-target
4+
35
// RUN: %clang_cc1 -triple x86_64 -emit-llvm -o - %s | FileCheck %s
46
//
57
// Verifies that clang detects memcpy inline version and uses it instead of the builtin.

clang/test/CodeGen/pr9614.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %clang_cc1 -triple x86_64-pc-linux -emit-llvm %s -o - | FileCheck %s
22

3+
// REQUIRES: x86-registered-target
4+
35
extern void foo_alias (void) __asm ("foo");
46
inline void foo (void) {
57
return foo_alias ();

0 commit comments

Comments
 (0)