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_align.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_align.ll')
-rw-r--r-- | test/CodeGen/X86/jump_table_align.ll | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/CodeGen/X86/jump_table_align.ll b/test/CodeGen/X86/jump_table_align.ll deleted file mode 100644 index 6ad48d1..0000000 --- a/test/CodeGen/X86/jump_table_align.ll +++ /dev/null @@ -1,29 +0,0 @@ -; RUN: llc -filetype=obj <%s -jump-table-type=single -o %t1 -; RUN: llvm-objdump -triple=x86_64-unknown-linux-gnu -d %t1 | 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 - %1 = load i32 (...)** %g, align 8 - %call = call i32 (...)* %1() - call void (void ()*)* @h(void ()* bitcast (void (void ()*)* @h to void ()*)) - %a = call i32 (i32*)* bitcast (i32 (i8*)* @g to i32(i32*)*)(i32* null) - ret i32 %a -} - -; Make sure that the padding from getJumpInstrTableEntryBound is right. -; CHECK: __llvm_jump_instr_table_0_1: -; CHECK-NEXT: e9 00 00 00 00 jmp 0 -; CHECK-NEXT: 0f 1f 00 nopl (%rax) |