Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/AArch64/arm64-crypto.ll @ 147:c2174574ed3a
LLVM 10
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 16:55:33 +0900 |
parents | 1172e4bd9c6f |
children |
comparison
equal
deleted
inserted
replaced
134:3a76565eade5 | 147:c2174574ed3a |
---|---|
1 ; RUN: llc -mtriple=arm64-eabi -mattr=crypto -aarch64-neon-syntax=apple -o - %s | FileCheck %s | 1 ; RUN: llc -mtriple=arm64-eabi -mattr=crypto -aarch64-neon-syntax=apple -o - %s | FileCheck %s |
2 ; RUN: llc -mtriple=arm64-eabi -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel* -mattr=crypto -aarch64-neon-syntax=apple -o - %s 2>&1 | FileCheck %s --check-prefixes=CHECK,FALLBACK | |
2 | 3 |
3 declare <16 x i8> @llvm.aarch64.crypto.aese(<16 x i8> %data, <16 x i8> %key) | 4 declare <16 x i8> @llvm.aarch64.crypto.aese(<16 x i8> %data, <16 x i8> %key) |
4 declare <16 x i8> @llvm.aarch64.crypto.aesd(<16 x i8> %data, <16 x i8> %key) | 5 declare <16 x i8> @llvm.aarch64.crypto.aesd(<16 x i8> %data, <16 x i8> %key) |
5 declare <16 x i8> @llvm.aarch64.crypto.aesmc(<16 x i8> %data) | 6 declare <16 x i8> @llvm.aarch64.crypto.aesmc(<16 x i8> %data) |
6 declare <16 x i8> @llvm.aarch64.crypto.aesimc(<16 x i8> %data) | 7 declare <16 x i8> @llvm.aarch64.crypto.aesimc(<16 x i8> %data) |
75 ; CHECK: sha1m.4s q0, [[HASH_E]], v1 | 76 ; CHECK: sha1m.4s q0, [[HASH_E]], v1 |
76 %res = call <4 x i32> @llvm.aarch64.crypto.sha1m(<4 x i32> %hash_abcd, i32 %hash_e, <4 x i32> %wk) | 77 %res = call <4 x i32> @llvm.aarch64.crypto.sha1m(<4 x i32> %hash_abcd, i32 %hash_e, <4 x i32> %wk) |
77 ret <4 x i32> %res | 78 ret <4 x i32> %res |
78 } | 79 } |
79 | 80 |
81 ; FALLBACK-NOT: remark{{.*}}test_sha1h | |
80 define i32 @test_sha1h(i32 %hash_e) { | 82 define i32 @test_sha1h(i32 %hash_e) { |
81 ; CHECK-LABEL: test_sha1h: | 83 ; CHECK-LABEL: test_sha1h: |
82 ; CHECK: fmov [[HASH_E:s[0-9]+]], w0 | 84 ; CHECK: fmov [[HASH_E:s[0-9]+]], w0 |
83 ; CHECK: sha1h [[RES:s[0-9]+]], [[HASH_E]] | 85 ; CHECK: sha1h [[RES:s[0-9]+]], [[HASH_E]] |
84 ; CHECK: fmov w0, [[RES]] | 86 ; CHECK: fmov w0, [[RES]] |