Skip to content

Commit d162b77

Browse files
author
Cameron McInally
committed
[MC] Make -mcpu=native test target specific
It's not possible to use `-mcpu=native` when the Target's Triple doesn't match the Host's. Move this test to the AArch64 directory so that it isn't run while cross-compiling. Originally llvm#159414
1 parent d38979d commit d162b77

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

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

llvm/test/MC/AsmParser/native.s

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

0 commit comments

Comments
 (0)