[PATCH] D62850: [X86] Fix builtins-x86.c test where it wasn't using immediates. NFC
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 7 02:48:42 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362786: [X86][test] Add test cases using immediates to builtins-x86.c (authored by russell_gallop, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D62850?vs=203124&id=203519#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62850/new/
https://reviews.llvm.org/D62850
Files:
cfe/trunk/test/CodeGen/builtins-x86.c
Index: cfe/trunk/test/CodeGen/builtins-x86.c
===================================================================
--- cfe/trunk/test/CodeGen/builtins-x86.c
+++ cfe/trunk/test/CodeGen/builtins-x86.c
@@ -399,6 +399,17 @@
#ifndef OPENCL
(void) _mm_pause();
#endif
+
+ tmp_V4s = __builtin_ia32_psllwi(tmp_V4s, imm_i_0_8);
+ tmp_V2i = __builtin_ia32_pslldi(tmp_V2i, imm_i_0_8);
+ tmp_V1LLi = __builtin_ia32_psllqi(tmp_V1LLi, imm_i_0_8);
+ tmp_V4s = __builtin_ia32_psrawi(tmp_V4s, imm_i_0_8);
+ tmp_V2i = __builtin_ia32_psradi(tmp_V2i, imm_i_0_8);
+ tmp_V4s = __builtin_ia32_psrlwi(tmp_V4s, imm_i_0_8);
+ tmp_V2i = __builtin_ia32_psrldi(tmp_V2i, imm_i_0_8);
+ tmp_V1LLi = __builtin_ia32_psrlqi(tmp_V1LLi, imm_i_0_8);
+
+ // Using non-immediate argument supported for gcc compatibility
tmp_V4s = __builtin_ia32_psllwi(tmp_V4s, tmp_i);
tmp_V2i = __builtin_ia32_pslldi(tmp_V2i, tmp_i);
tmp_V1LLi = __builtin_ia32_psllqi(tmp_V1LLi, tmp_i);
@@ -407,6 +418,7 @@
tmp_V4s = __builtin_ia32_psrlwi(tmp_V4s, tmp_i);
tmp_V2i = __builtin_ia32_psrldi(tmp_V2i, tmp_i);
tmp_V1LLi = __builtin_ia32_psrlqi(tmp_V1LLi, tmp_i);
+
tmp_V1LLi = __builtin_ia32_pmuludq(tmp_V2i, tmp_V2i);
tmp_V2LLi = __builtin_ia32_pmuludq128(tmp_V4i, tmp_V4i);
tmp_V8s = __builtin_ia32_psraw128(tmp_V8s, tmp_V8s);
@@ -417,6 +429,17 @@
tmp_V8s = __builtin_ia32_psllw128(tmp_V8s, tmp_V8s);
tmp_V4i = __builtin_ia32_pslld128(tmp_V4i, tmp_V4i);
tmp_V2LLi = __builtin_ia32_psllq128(tmp_V2LLi, tmp_V2LLi);
+
+ tmp_V8s = __builtin_ia32_psllwi128(tmp_V8s, imm_i_0_8);
+ tmp_V4i = __builtin_ia32_pslldi128(tmp_V4i, imm_i_0_8);
+ tmp_V2LLi = __builtin_ia32_psllqi128(tmp_V2LLi, imm_i_0_8);
+ tmp_V8s = __builtin_ia32_psrlwi128(tmp_V8s, imm_i_0_8);
+ tmp_V4i = __builtin_ia32_psrldi128(tmp_V4i, imm_i_0_8);
+ tmp_V2LLi = __builtin_ia32_psrlqi128(tmp_V2LLi, imm_i_0_8);
+ tmp_V8s = __builtin_ia32_psrawi128(tmp_V8s, imm_i_0_8);
+ tmp_V4i = __builtin_ia32_psradi128(tmp_V4i, imm_i_0_8);
+
+ // Using non-immediate argument supported for gcc compatibility
tmp_V8s = __builtin_ia32_psllwi128(tmp_V8s, tmp_i);
tmp_V4i = __builtin_ia32_pslldi128(tmp_V4i, tmp_i);
tmp_V2LLi = __builtin_ia32_psllqi128(tmp_V2LLi, tmp_i);
@@ -425,6 +448,7 @@
tmp_V2LLi = __builtin_ia32_psrlqi128(tmp_V2LLi, tmp_i);
tmp_V8s = __builtin_ia32_psrawi128(tmp_V8s, tmp_i);
tmp_V4i = __builtin_ia32_psradi128(tmp_V4i, tmp_i);
+
tmp_V4i = __builtin_ia32_pmaddwd128(tmp_V8s, tmp_V8s);
(void) __builtin_ia32_monitor(tmp_vp, tmp_Ui, tmp_Ui);
(void) __builtin_ia32_mwait(tmp_Ui, tmp_Ui);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62850.203519.patch
Type: text/x-patch
Size: 2577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190607/e2ae35fc/attachment-0001.bin>
More information about the cfe-commits
mailing list