Improve dead code elimination
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/bits/progn.internal.h"
|
||||
#include "libc/intrin/mpsadbw.h"
|
||||
#include "libc/intrin/pabsb.h"
|
||||
#include "libc/intrin/pabsd.h"
|
||||
@@ -2082,19 +2081,3 @@ TEST(pext, fuzz) {
|
||||
ASSERT_EQ(pext(x, y), (pext)(x, y));
|
||||
}
|
||||
}
|
||||
|
||||
BENCH(psrldq, bench) {
|
||||
volatile uint8_t A[16];
|
||||
volatile uint8_t B[16];
|
||||
EZBENCH2("psrldq const 𝑖", donothing, PROGN(psrldq(A, B, 7)));
|
||||
EZBENCH2("psrldq var 𝑖", donothing, PROGN(psrldq(A, B, VEIL("r", 7))));
|
||||
EZBENCH2("psrldq ansi", donothing, PROGN((psrldq)(A, B, 7)));
|
||||
}
|
||||
|
||||
BENCH(pslldq, bench) {
|
||||
volatile uint8_t A[16];
|
||||
volatile uint8_t B[16];
|
||||
EZBENCH2("pslldq const 𝑖", donothing, PROGN(pslldq(A, B, 7)));
|
||||
EZBENCH2("pslldq var 𝑖", donothing, PROGN(pslldq(A, B, VEIL("r", 7))));
|
||||
EZBENCH2("pslldq ansi", donothing, PROGN((pslldq)(A, B, 7)));
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/bits/progn.internal.h"
|
||||
#include "libc/intrin/palignr.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
@@ -220,12 +219,3 @@ TEST(palignrc, test32orHigher_clearsOutput) {
|
||||
ASSERT_EQ(0, C[2]);
|
||||
ASSERT_EQ(0, C[3]);
|
||||
}
|
||||
|
||||
BENCH(palignr, bench) {
|
||||
volatile __intrin_xmm_t A;
|
||||
volatile __intrin_xmm_t B;
|
||||
EZBENCH2("palignr const 𝑖", donothing, PROGN(palignr(&A, &A, &B, 7)));
|
||||
EZBENCH2("palignr var 𝑖", donothing,
|
||||
PROGN(palignr(&A, &A, &B, VEIL("r", 7))));
|
||||
EZBENCH2("palignr ansi", donothing, PROGN((palignr)(&A, &A, &B, 7)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user