diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-28 14:44:33 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-28 14:44:33 +0000 |
commit | 2172f51e4ec83d7e7290f35d63fc4304f9cf0087 (patch) | |
tree | b4d2e3453a3ba201f66815d26fe52dfa3b9b5ca0 | |
parent | 6260cceec7f59e2f6e5025dd0c0bfa75eaa29c47 (diff) | |
download | bcm5719-llvm-2172f51e4ec83d7e7290f35d63fc4304f9cf0087.tar.gz bcm5719-llvm-2172f51e4ec83d7e7290f35d63fc4304f9cf0087.zip |
Test the mcpu option.
llvm-svn: 214087
-rw-r--r-- | llvm/test/tools/gold/option.ll | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/test/tools/gold/option.ll b/llvm/test/tools/gold/option.ll index af24d831f4b..49931801e62 100644 --- a/llvm/test/tools/gold/option.ll +++ b/llvm/test/tools/gold/option.ll @@ -2,6 +2,7 @@ ; RUN: ld -plugin %llvmshlibdir/LLVMgold.so -m elf_x86_64 \ ; RUN: --plugin-opt=-jump-table-type=arity \ ; RUN: --plugin-opt=-mattr=+aes \ +; RUN: --plugin-opt=mcpu=core-avx2 \ ; RUN: -shared %t.o -o %t2.o ; RUN: llvm-nm %t2.o | FileCheck %s @@ -17,8 +18,14 @@ define i32 @f() unnamed_addr jumptable { ret i32 0 } -define <2 x i64> @test_avx(<2 x i64> %a0, <2 x i64> %a1) { +define <2 x i64> @test_aes(<2 x i64> %a0, <2 x i64> %a1) { %res = call <2 x i64> @llvm.x86.aesni.aesenc(<2 x i64> %a0, <2 x i64> %a1) ret <2 x i64> %res } declare <2 x i64> @llvm.x86.aesni.aesenc(<2 x i64>, <2 x i64>) nounwind readnone + +define <32 x i8> @test_avx2(<16 x i16> %a0, <16 x i16> %a1) { + %res = call <32 x i8> @llvm.x86.avx2.packuswb(<16 x i16> %a0, <16 x i16> %a1) + ret <32 x i8> %res +} +declare <32 x i8> @llvm.x86.avx2.packuswb(<16 x i16>, <16 x i16>) nounwind readnone |