2017-11-21 17:11:41 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+avx,+vaes -show-mc-encoding | FileCheck %s --check-prefix=VAES_AVX
|
|
|
|
|
|
|
|
; {vaes, avx}
|
|
|
|
define <4 x i64> @test_x86_aesni_aesenc_256(<4 x i64> %a0, <4 x i64> %a1) {
|
|
|
|
; VAES_AVX-LABEL: test_x86_aesni_aesenc_256:
|
2017-12-05 01:18:51 +08:00
|
|
|
; VAES_AVX: # %bb.0:
|
2017-11-21 17:11:41 +08:00
|
|
|
; VAES_AVX-NEXT: vaesenc %ymm1, %ymm0, %ymm0 # encoding: [0xc4,0xe2,0x7d,0xdc,0xc1]
|
|
|
|
; VAES_AVX-NEXT: retl # encoding: [0xc3]
|
|
|
|
%res = call <4 x i64> @llvm.x86.aesni.aesenc.256(<4 x i64> %a0, <4 x i64> %a1)
|
|
|
|
ret <4 x i64> %res
|
|
|
|
}
|
|
|
|
declare <4 x i64> @llvm.x86.aesni.aesenc.256(<4 x i64>, <4 x i64>) nounwind readnone
|