Debian Codegraph @

gcc/testsuite/gcc.target/riscv/packw.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=rv64gc_zbkb -mabi=lp64" } */
3 /* { dg-skip-if "" { *-*-* } { "-g" "-flto" "-O0" } } */
4 #include <stdint-gcc.h>
5
6 uint32_t foo1(uint32_t rs1, uint32_t rs2)
7 {
8 return (rs1 << 16) | ((rs2 << 16) >> 16);
9 }
10
11 /* { dg-final { scan-assembler-times "\\spackw\\s" 1 } } */
12 /* { dg-final { scan-assembler-not "\\ssext\\s" } } */
13