diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 22:08:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-10 22:08:18 +0000 |
commit | 13a7db5b9c4f5e543d037be68ec3428216bfd550 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/CodeGen/X86/jump_table_alias.ll | |
parent | 0eb46f5d1e06a4284663d636a74b06adc3a161d7 (diff) | |
parent | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (diff) | |
download | external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.zip external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.gz external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.bz2 |
am 31195f0b: Merge "Update aosp/master llvm for rebase to r233350"
* commit '31195f0bdca6ee2a5e72d07edf13e1d81206d949':
Update aosp/master llvm for rebase to r233350
Diffstat (limited to 'test/CodeGen/X86/jump_table_alias.ll')
-rw-r--r-- | test/CodeGen/X86/jump_table_alias.ll | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/CodeGen/X86/jump_table_alias.ll b/test/CodeGen/X86/jump_table_alias.ll deleted file mode 100644 index 2062200..0000000 --- a/test/CodeGen/X86/jump_table_alias.ll +++ /dev/null @@ -1,32 +0,0 @@ -; RUN: llc <%s -jump-table-type=single | FileCheck %s -target triple = "x86_64-unknown-linux-gnu" -define i32 @f() unnamed_addr jumptable { -entry: - ret i32 0 -} - -@i = internal alias i32 ()* @f -@j = alias i32 ()* @f - -define i32 @main(i32 %argc, i8** %argv) { - %temp = alloca i32 ()*, align 8 - store i32 ()* @i, i32()** %temp, align 8 -; CHECK: movq $__llvm_jump_instr_table_0_1 - %1 = load i32 ()** %temp, align 8 -; CHECK: movl $__llvm_jump_instr_table_0_1 - %2 = call i32 ()* %1() - %3 = call i32 ()* @i() -; CHECK: callq i - %4 = call i32 ()* @j() -; CHECK: callq j - ret i32 %3 -} - -; There should only be one table, even though there are two GlobalAliases, -; because they both alias the same value. - -; CHECK: .align 8, 0x90 -; CHECK: .type __llvm_jump_instr_table_0_1,@function -; CHECK: __llvm_jump_instr_table_0_1: -; CHECK: jmp f@PLT - |