summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Assembler/datalayout-invalid-function-ptr-alignment.ll5
-rw-r--r--llvm/test/Assembler/datalayout-invalid-stack-natural-alignment.ll5
-rw-r--r--llvm/test/Bitcode/invalid-functionptr-align.ll5
-rw-r--r--llvm/test/Bitcode/invalid-functionptr-align.ll.bcbin0 -> 1588 bytes
4 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Assembler/datalayout-invalid-function-ptr-alignment.ll b/llvm/test/Assembler/datalayout-invalid-function-ptr-alignment.ll
new file mode 100644
index 00000000000..21cd6a6dc78
--- /dev/null
+++ b/llvm/test/Assembler/datalayout-invalid-function-ptr-alignment.ll
@@ -0,0 +1,5 @@
+; RUN: not llvm-as %s 2>&1 | FileCheck %s
+
+; CHECK: LLVM ERROR: Alignment is neither 0 nor a power of 2
+
+target datalayout = "Fi24"
diff --git a/llvm/test/Assembler/datalayout-invalid-stack-natural-alignment.ll b/llvm/test/Assembler/datalayout-invalid-stack-natural-alignment.ll
new file mode 100644
index 00000000000..c8d7ba62ab8
--- /dev/null
+++ b/llvm/test/Assembler/datalayout-invalid-stack-natural-alignment.ll
@@ -0,0 +1,5 @@
+; RUN: not llvm-as %s 2>&1 | FileCheck %s
+
+; CHECK: LLVM ERROR: Alignment is neither 0 nor a power of 2
+
+target datalayout = "S24"
diff --git a/llvm/test/Bitcode/invalid-functionptr-align.ll b/llvm/test/Bitcode/invalid-functionptr-align.ll
new file mode 100644
index 00000000000..4ff797a4b01
--- /dev/null
+++ b/llvm/test/Bitcode/invalid-functionptr-align.ll
@@ -0,0 +1,5 @@
+; Bitcode with invalid function pointer alignment.
+
+; RUN: not llvm-dis %s.bc -o - 2>&1 | FileCheck %s
+
+CHECK: LLVM ERROR: Alignment is neither 0 nor a power of 2
diff --git a/llvm/test/Bitcode/invalid-functionptr-align.ll.bc b/llvm/test/Bitcode/invalid-functionptr-align.ll.bc
new file mode 100644
index 00000000000..38e4ed8f110
--- /dev/null
+++ b/llvm/test/Bitcode/invalid-functionptr-align.ll.bc
Binary files differ
OpenPOWER on IntegriCloud