diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 21:22:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-10 21:23:04 +0000 |
commit | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/CodeGen/X86/jump_table_bitcast.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
parent | 4c5e43da7792f75567b693105cc53e3f1992ad98 (diff) | |
download | external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.zip external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.gz external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.bz2 |
Merge "Update aosp/master llvm for rebase to r233350"
Diffstat (limited to 'test/CodeGen/X86/jump_table_bitcast.ll')
-rw-r--r-- | test/CodeGen/X86/jump_table_bitcast.ll | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/test/CodeGen/X86/jump_table_bitcast.ll b/test/CodeGen/X86/jump_table_bitcast.ll deleted file mode 100644 index 749b77a..0000000 --- a/test/CodeGen/X86/jump_table_bitcast.ll +++ /dev/null @@ -1,43 +0,0 @@ -; RUN: llc <%s -jump-table-type=single | FileCheck %s -target triple = "x86_64-unknown-linux-gnu" -define i32 @f() unnamed_addr jumptable { - ret i32 0 -} - -define i32 @g(i8* %a) unnamed_addr jumptable { - ret i32 0 -} - -define void @h(void ()* %func) unnamed_addr jumptable { - ret void -} - -define i32 @main() { - %g = alloca i32 (...)*, align 8 - store i32 (...)* bitcast (i32 ()* @f to i32 (...)*), i32 (...)** %g, align 8 -; CHECK: movq $__llvm_jump_instr_table_0_[[ENTRY:1|2|3]], -; CHECK: movl $__llvm_jump_instr_table_0_[[ENTRY]], - %1 = load i32 (...)** %g, align 8 - %call = call i32 (...)* %1() - call void (void ()*)* @h(void ()* bitcast (void (void ()*)* @h to void ()*)) -; CHECK: movl $__llvm_jump_instr_table_0_{{1|2|3}}, -; CHECK: callq h - - %a = call i32 (i32*)* bitcast (i32 (i8*)* @g to i32(i32*)*)(i32* null) -; CHECK: callq g - ret i32 %a -} - -; CHECK: .align 8, 0x90 -; CHECK: .type __llvm_jump_instr_table_0_1,@function -; CHECK: __llvm_jump_instr_table_0_1: -; CHECK: jmp {{f|g|h}}@PLT -; CHECK: .align 8, 0x90 -; CHECK: .type __llvm_jump_instr_table_0_2,@function -; CHECK: __llvm_jump_instr_table_0_2: -; CHECK: jmp {{f|g|h}}@PLT -; CHECK: .align 8, 0x90 -; CHECK: .type __llvm_jump_instr_table_0_3,@function -; CHECK: __llvm_jump_instr_table_0_3: -; CHECK: jmp {{f|g|h}}@PLT - |