diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-14 18:51:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-14 18:51:18 +0000 |
commit | 7147946afe27427968b27c06975e7c63a5726c77 (patch) | |
tree | 06fc2e2597f7f63986e630a1acf2e9906e29a24c /test/CodeGen/X86/GC/badreadproto.ll | |
parent | da0688e08a1b9e95ef3fda1158409f40e07be910 (diff) | |
download | llvm-7147946afe27427968b27c06975e7c63a5726c77.tar.gz llvm-7147946afe27427968b27c06975e7c63a5726c77.tar.bz2 llvm-7147946afe27427968b27c06975e7c63a5726c77.tar.xz |
don't have i386-specific tests in CodeGen/Generic, PR6601.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/GC/badreadproto.ll')
-rw-r--r-- | test/CodeGen/X86/GC/badreadproto.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/GC/badreadproto.ll b/test/CodeGen/X86/GC/badreadproto.ll new file mode 100644 index 0000000000..4fe90b9083 --- /dev/null +++ b/test/CodeGen/X86/GC/badreadproto.ll @@ -0,0 +1,13 @@ +; RUN: not llvm-as < %s >& /dev/null + + %list = type { i32, %list* } + +; This usage is invalid now; instead, objects must be bitcast to i8* for input +; to the gc intrinsics. +declare %list* @llvm.gcread(%list*, %list**) + +define %list* @tl(%list* %l) gc "example" { + %hd.ptr = getelementptr %list* %l, i32 0, i32 0 + %hd = call %list* @llvm.gcread(%list* %l, %list** %hd.ptr) + ret i32 %tmp +} |