[llvm] r214087 - Test the mcpu option.
Rafael Espindola
rafael.espindola at gmail.com
Mon Jul 28 07:44:33 PDT 2014
Author: rafael
Date: Mon Jul 28 09:44:33 2014
New Revision: 214087
URL: http://llvm.org/viewvc/llvm-project?rev=214087&view=rev
Log:
Test the mcpu option.
Modified:
llvm/trunk/test/tools/gold/option.ll
Modified: llvm/trunk/test/tools/gold/option.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/option.ll?rev=214087&r1=214086&r2=214087&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/option.ll (original)
+++ llvm/trunk/test/tools/gold/option.ll Mon Jul 28 09:44:33 2014
@@ -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
More information about the llvm-commits
mailing list