diff options
author | Richard Biener <rguenther@suse.de> | 2022-02-11 10:27:20 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-02-11 11:28:25 +0100 |
commit | 72f8d228aff80ede554b1735533af7eb0bd4a912 (patch) | |
tree | a623471d04026136860453f3e730d5149cafed65 /gcc/testsuite | |
parent | 18c8086d65f3d539e065ea7c97e3de6f3bbdf684 (diff) | |
download | gcc-72f8d228aff80ede554b1735533af7eb0bd4a912.zip gcc-72f8d228aff80ede554b1735533af7eb0bd4a912.tar.gz gcc-72f8d228aff80ede554b1735533af7eb0bd4a912.tar.bz2 |
middle-end/104496 - fix vectorized_internal_fn_supported_p
This fixes vectorized_internal_fn_supported_p behavior when
facing vector types with an integer mode.
2022-02-11 Richard Biener <rguenther@suse.de>
PR middle-end/104496
* internal-fn.cc (vectorized_internal_fn_supported_p):
Bail out for integer mode vector types.
* gcc.target/i386/pr104496.c: New testcase.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr104496.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr104496.c b/gcc/testsuite/gcc.target/i386/pr104496.c new file mode 100644 index 0000000..62d3bc6 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr104496.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O -mgeneral-regs-only -msse" } */ + +typedef int __attribute__((__vector_size__ (8))) V; +V a, b; +int c; + +void +foo (void) +{ + b = 0 != a | b << c; +} |