Add LLVM support for PPC cryptography builtins

Review: http://reviews.llvm.org/D7955


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231285 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nemanja Ivanovic
2015-03-04 20:44:33 +00:00
parent c56226c6d1
commit b69d556c37
14 changed files with 539 additions and 3 deletions

View File

@@ -120,6 +120,42 @@
# CHECK: vperm 2, 3, 4, 5
0x10 0x43 0x21 0x6b
# CHECK: vpermxor 2, 3, 4, 5
0x10 0x43 0x21 0x6d
# CHECK: vsbox 2, 5
0x10 0x45 0x05 0xc8
# CHECK: vcipher 2, 5, 17
0x10 0x45 0x8d 0x08
# CHECK: vcipherlast 2, 5, 17
0x10 0x45 0x8d 0x09
# CHECK: vncipher 2, 5, 17
0x10,0x45,0x8d,0x48
# CHECK: vncipherlast 2, 5, 17
0x10,0x45,0x8d,0x49
# CHECK: vpmsumb 2, 5, 17
0x10 0x45 0x8c 0x08
# CHECK: vpmsumh 2, 5, 17
0x10 0x45 0x8c 0x48
# CHECK: vpmsumw 2, 5, 17
0x10 0x45 0x8c 0x88
# CHECK: vpmsumd 2, 5, 17
0x10 0x45 0x8c 0xc8
# CHECK: vshasigmaw 2, 3, 0, 11
0x10 0x43 0x5e 0x82
# CHECK: vshasigmad 2, 3, 1, 15
0x10 0x43 0xfe 0xc2
# CHECK: vsel 2, 3, 4, 5
0x10 0x43 0x21 0x6a