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/cfi_enforcing.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/cfi_enforcing.ll')
-rw-r--r-- | test/CodeGen/X86/cfi_enforcing.ll | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test/CodeGen/X86/cfi_enforcing.ll b/test/CodeGen/X86/cfi_enforcing.ll deleted file mode 100644 index bcad8c1..0000000 --- a/test/CodeGen/X86/cfi_enforcing.ll +++ /dev/null @@ -1,34 +0,0 @@ -; RUN: llc -mtriple=i386-unknown-linux-gnu -fcfi -cfi-enforcing <%s | FileCheck --check-prefix=X86 %s -; RUN: llc -mtriple=x86_64-unknown-linux-gnu -fcfi -cfi-enforcing <%s | FileCheck --check-prefix=X86-64 %s - -define void @indirect_fun() unnamed_addr jumptable { - ret void -} - -define i32 @m(void ()* %fun) { - call void ()* %fun() -; CHECK: subl -; X86-64: andq $8, -; X86-64: leaq __llvm_jump_instr_table_0_1({{%[a-z0-9]+}}), [[REG:%[a-z0-9]+]] -; X86-64-NOT: callq __llvm_cfi_pointer_warning -; X86-64: callq *[[REG]] -; X86: andl $8, -; X86: leal __llvm_jump_instr_table_0_1({{%[a-z0-9]+}}), [[REG:%[a-z0-9]+]] -; X86-NOT: calll __llvm_cfi_pointer_warning -; X86: calll *[[REG]] - ret i32 0 -} - -define void ()* @get_fun() { - ret void ()* @indirect_fun -} - -define i32 @main(i32 %argc, i8** %argv) { - %f = call void ()* ()* @get_fun() - %a = call i32 @m(void ()* %f) - ret i32 %a -} - -; CHECK: .align 8 -; CHECK: __llvm_jump_instr_table_0_1: -; CHECK: jmp indirect_fun@PLT |