Move llvm/test/CodeGen/Generic/function-alias.ll to X86. It is incompatible to PECOFF.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 4 Dec 2015 02:00:12 +0000 (02:00 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 4 Dec 2015 02:00:12 +0000 (02:00 +0000)
FIXME: It may be ELF-generic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254685 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Generic/function-alias.ll [deleted file]
test/CodeGen/X86/function-alias.ll [new file with mode: 0644]

diff --git a/test/CodeGen/Generic/function-alias.ll b/test/CodeGen/Generic/function-alias.ll
deleted file mode 100644 (file)
index 7eec5be..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: llc < %s | FileCheck %s
-
-; "data" constant
-@0 = private constant <{ i8, i8 }> <{i8 15, i8 11}>, section ".text"
-
-; function-typed alias
-@ud2 = alias void (), bitcast (<{ i8, i8 }>* @0 to void ()*)
-
-; Check that "ud2" is emitted as a function symbol.
-; CHECK: .type{{.*}}ud2,@function
diff --git a/test/CodeGen/X86/function-alias.ll b/test/CodeGen/X86/function-alias.ll
new file mode 100644 (file)
index 0000000..d68d75d
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: llc < %s | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+; "data" constant
+@0 = private constant <{ i8, i8 }> <{i8 15, i8 11}>, section ".text"
+
+; function-typed alias
+@ud2 = alias void (), bitcast (<{ i8, i8 }>* @0 to void ()*)
+
+; Check that "ud2" is emitted as a function symbol.
+; CHECK: .type{{.*}}ud2,@function