[FastISel][X86] Argument lowering test case
authorJuergen Ributzka <juergen@apple.com>
Thu, 12 Jun 2014 20:34:09 +0000 (20:34 +0000)
committerJuergen Ributzka <juergen@apple.com>
Thu, 12 Jun 2014 20:34:09 +0000 (20:34 +0000)
This test case is supposed to xfail, because we do not handle structs or byval
arguments.

llvm-svn: 210816

llvm/test/CodeGen/X86/fast-isel-args-fail2.ll [new file with mode: 0644]

diff --git a/llvm/test/CodeGen/X86/fast-isel-args-fail2.ll b/llvm/test/CodeGen/X86/fast-isel-args-fail2.ll
new file mode 100644 (file)
index 0000000..1b5e55c
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: llc < %s -fast-isel -fast-isel-abort-args -mtriple=x86_64-apple-darwin10
+; XFAIL: *
+
+%struct.s0 = type { x86_fp80, x86_fp80 }
+
+; FastISel cannot handle this case yet. Make sure that we abort.
+define i8* @args_fail(%struct.s0* byval nocapture readonly align 16 %y) {
+  %1 = bitcast %struct.s0* %y to i8*
+  ret i8* %1
+}