Skip to content

Commit 5b017e3

Browse files
mcinallyCameron McInally
andauthored
[MC] Make -mcpu=native test target specific (#159868)
It's not possible to use `-mcpu=native` when the Target's Triple doesn't match the Host's. Move this test to the X86 directory so that it isn't run while cross-compiling. Originally #159414 --------- Co-authored-by: Cameron McInally <[email protected]>
1 parent 5d39b87 commit 5b017e3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

llvm/test/MC/AsmParser/native.s

Lines changed: 0 additions & 4 deletions
This file was deleted.

llvm/test/MC/X86/mcpu-native.s

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# REQUIRES: host=x86_64-{{.*}}
2+
# RUN: llvm-mc -triple=x86_64 -filetype=obj -o %t -mcpu=native %s 2> %t.stderr
3+
# RUN: FileCheck --allow-empty %s < %t.stderr
4+
5+
# CHECK-NOT: {{.+}}

0 commit comments

Comments
 (0)