@@ -3,17 +3,17 @@
/* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
#include <stdint-gcc.h>
-int32_t foo1(int32_t rs1, int32_t rs2)
+uint32_t foo1(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_clmul(rs1, rs2);
}
-int32_t foo2(int32_t rs1, int32_t rs2)
+uint32_t foo2(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_clmulh(rs1, rs2);
}
-int32_t foo3(int32_t rs1, int32_t rs2)
+uint32_t foo3(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_clmulr(rs1, rs2);
}
@@ -3,17 +3,17 @@
/* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
#include <stdint-gcc.h>
-int64_t foo1(int64_t rs1, int64_t rs2)
+uint64_t foo1(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_clmul(rs1, rs2);
}
-int64_t foo2(int64_t rs1, int64_t rs2)
+uint64_t foo2(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_clmulh(rs1, rs2);
}
-int64_t foo3(int64_t rs1, int64_t rs2)
+uint64_t foo3(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_clmulr(rs1, rs2);
}
@@ -4,27 +4,27 @@
#include <stdint-gcc.h>
-int32_t foo1(int16_t rs1, int16_t rs2)
+uint32_t foo1(uint16_t rs1, uint16_t rs2)
{
return __builtin_riscv_pack(rs1, rs2);
}
-int32_t foo2(int8_t rs1, int8_t rs2)
+uint32_t foo2(uint8_t rs1, uint8_t rs2)
{
return __builtin_riscv_packh(rs1, rs2);
}
-int32_t foo3(int32_t rs1)
+uint32_t foo3(uint32_t rs1)
{
return __builtin_riscv_brev8(rs1);
}
-int32_t foo4(int32_t rs1)
+uint32_t foo4(uint32_t rs1)
{
return __builtin_riscv_zip(rs1);
}
-int32_t foo5(int32_t rs1)
+uint32_t foo5(uint32_t rs1)
{
return __builtin_riscv_unzip(rs1);
}
@@ -3,22 +3,22 @@
/* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
#include <stdint-gcc.h>
-int64_t foo1(int32_t rs1, int32_t rs2)
+uint64_t foo1(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_pack(rs1, rs2);
}
-int64_t foo2(int8_t rs1, int8_t rs2)
+uint64_t foo2(uint8_t rs1, uint8_t rs2)
{
return __builtin_riscv_packh(rs1, rs2);
}
-int64_t foo3(int16_t rs1, int16_t rs2)
+uint64_t foo3(uint16_t rs1, uint16_t rs2)
{
return __builtin_riscv_packw(rs1, rs2);
}
-int64_t foo4(int64_t rs1, int64_t rs2)
+uint64_t foo4(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_brev8(rs1);
}
@@ -3,12 +3,12 @@
/* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
#include <stdint-gcc.h>
-int32_t foo1(int32_t rs1, int32_t rs2)
+uint32_t foo1(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_clmul(rs1, rs2);
}
-int32_t foo2(int32_t rs1, int32_t rs2)
+uint32_t foo2(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_clmulh(rs1, rs2);
}
@@ -3,12 +3,12 @@
/* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
#include <stdint-gcc.h>
-int64_t foo1(int64_t rs1, int64_t rs2)
+uint64_t foo1(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_clmul(rs1, rs2);
}
-int64_t foo2(int64_t rs1, int64_t rs2)
+uint64_t foo2(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_clmulh(rs1, rs2);
}
@@ -4,12 +4,12 @@
#include <stdint-gcc.h>
-int32_t foo3(int32_t rs1, int32_t rs2)
+uint32_t foo3(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_xperm8(rs1, rs2);
}
-int32_t foo4(int32_t rs1, int32_t rs2)
+uint32_t foo4(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_xperm4(rs1, rs2);
}
@@ -4,12 +4,12 @@
#include <stdint-gcc.h>
-int64_t foo1(int64_t rs1, int64_t rs2)
+uint64_t foo1(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_xperm8(rs1, rs2);
}
-int64_t foo2(int64_t rs1, int64_t rs2)
+uint64_t foo2(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_xperm4(rs1, rs2);
}
@@ -4,12 +4,12 @@
#include <stdint-gcc.h>
-int32_t foo1(int32_t rs1, int32_t rs2, int bs)
+uint32_t foo1(uint32_t rs1, uint32_t rs2, int bs)
{
return __builtin_riscv_aes32dsi(rs1,rs2,bs);
}
-int32_t foo2(int32_t rs1, int32_t rs2, int bs)
+uint32_t foo2(uint32_t rs1, uint32_t rs2, int bs)
{
return __builtin_riscv_aes32dsmi(rs1,rs2,bs);
}
@@ -4,27 +4,27 @@
#include <stdint-gcc.h>
-int64_t foo1(int64_t rs1, int64_t rs2)
+uint64_t foo1(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_aes64ds(rs1,rs2);
}
-int64_t foo2(int64_t rs1, int64_t rs2)
+uint64_t foo2(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_aes64dsm(rs1,rs2);
}
-int64_t foo3(int64_t rs1, int rnum)
+uint64_t foo3(uint64_t rs1, unsigned rnum)
{
return __builtin_riscv_aes64ks1i(rs1,rnum);
}
-int64_t foo4(int64_t rs1, int64_t rs2)
+uint64_t foo4(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_aes64ks2(rs1,rs2);
}
-int64_t foo5(int64_t rs1)
+uint64_t foo5(uint64_t rs1)
{
return __builtin_riscv_aes64im(rs1);
}
@@ -4,12 +4,12 @@
#include <stdint-gcc.h>
-int32_t foo1(int32_t rs1, int32_t rs2, int bs)
+uint32_t foo1(uint32_t rs1, uint32_t rs2, unsigned bs)
{
return __builtin_riscv_aes32esi(rs1, rs2, bs);
}
-int32_t foo2(int32_t rs1, int32_t rs2, int bs)
+uint32_t foo2(uint32_t rs1, uint32_t rs2, unsigned bs)
{
return __builtin_riscv_aes32esmi(rs1, rs2, bs);
}
@@ -4,22 +4,22 @@
#include <stdint-gcc.h>
-int64_t foo1(int64_t rs1, int64_t rs2)
+uint64_t foo1(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_aes64es(rs1,rs2);
}
-int64_t foo2(int64_t rs1, int64_t rs2)
+uint64_t foo2(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_aes64esm(rs1,rs2);
}
-int64_t foo3(int64_t rs1, int rnum)
+uint64_t foo3(uint64_t rs1, unsigned rnum)
{
return __builtin_riscv_aes64ks1i(rs1,rnum);
}
-int64_t foo4(int64_t rs1, int64_t rs2)
+uint64_t foo4(uint64_t rs1, uint64_t rs2)
{
return __builtin_riscv_aes64ks2(rs1,rs2);
}
@@ -2,22 +2,22 @@
/* { dg-options "-O2 -march=rv64gc_zknh -mabi=lp64" } */
/* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
-long foo1(long rs1)
+unsigned long foo1(unsigned long rs1)
{
return __builtin_riscv_sha256sig0(rs1);
}
-long foo2(long rs1)
+unsigned long foo2(unsigned long rs1)
{
return __builtin_riscv_sha256sig1(rs1);
}
-long foo3(long rs1)
+unsigned long foo3(unsigned long rs1)
{
return __builtin_riscv_sha256sum0(rs1);
}
-long foo4(long rs1)
+unsigned long foo4(unsigned long rs1)
{
return __builtin_riscv_sha256sum1(rs1);
}
@@ -4,32 +4,32 @@
#include <stdint-gcc.h>
-int32_t foo1(int32_t rs1, int32_t rs2)
+uint32_t foo1(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_sha512sig0h(rs1,rs2);
}
-int32_t foo2(int32_t rs1, int32_t rs2)
+uint32_t foo2(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_sha512sig0l(rs1,rs2);
}
-int32_t foo3(int32_t rs1, int32_t rs2)
+uint32_t foo3(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_sha512sig1h(rs1,rs2);
}
-int32_t foo4(int32_t rs1, int32_t rs2)
+uint32_t foo4(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_sha512sig1l(rs1,rs2);
}
-int32_t foo5(int32_t rs1, int32_t rs2)
+uint32_t foo5(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_sha512sum0r(rs1,rs2);
}
-int32_t foo6(int32_t rs1, int32_t rs2)
+uint32_t foo6(uint32_t rs1, uint32_t rs2)
{
return __builtin_riscv_sha512sum1r(rs1,rs2);
}
@@ -4,22 +4,22 @@
#include <stdint-gcc.h>
-int64_t foo1(int64_t rs1)
+uint64_t foo1(uint64_t rs1)
{
return __builtin_riscv_sha512sig0(rs1);
}
-int64_t foo2(int64_t rs1)
+uint64_t foo2(uint64_t rs1)
{
return __builtin_riscv_sha512sig1(rs1);
}
-int64_t foo3(int64_t rs1)
+uint64_t foo3(uint64_t rs1)
{
return __builtin_riscv_sha512sum0(rs1);
}
-int64_t foo4(int64_t rs1)
+uint64_t foo4(uint64_t rs1)
{
return __builtin_riscv_sha512sum1(rs1);
}
@@ -4,12 +4,12 @@
#include <stdint-gcc.h>
-int32_t foo1(int32_t rs1, int32_t rs2, int bs)
+uint32_t foo1(uint32_t rs1, uint32_t rs2, unsigned bs)
{
return __builtin_riscv_sm4ks(rs1,rs2,bs);
}
-int32_t foo2(int32_t rs1, int32_t rs2, int bs)
+uint32_t foo2(uint32_t rs1, uint32_t rs2, unsigned bs)
{
return __builtin_riscv_sm4ed(rs1,rs2,bs);
}
@@ -4,12 +4,12 @@
#include <stdint-gcc.h>
-int64_t foo1(int64_t rs1, int64_t rs2, int bs)
+uint64_t foo1(uint64_t rs1, uint64_t rs2, unsigned bs)
{
return __builtin_riscv_sm4ks(rs1,rs2,bs);
}
-int64_t foo2(int64_t rs1, int64_t rs2, int bs)
+uint64_t foo2(uint64_t rs1, uint64_t rs2, unsigned bs)
{
return __builtin_riscv_sm4ed(rs1,rs2,bs);
}
@@ -4,12 +4,12 @@
#include <stdint-gcc.h>
-int32_t foo1(int32_t rs1)
+uint32_t foo1(uint32_t rs1)
{
return __builtin_riscv_sm3p0(rs1);
}
-int32_t foo2(int32_t rs1)
+uint32_t foo2(uint32_t rs1)
{
return __builtin_riscv_sm3p1(rs1);
}
@@ -4,12 +4,12 @@
#include <stdint-gcc.h>
-int64_t foo1(int64_t rs1)
+uint64_t foo1(uint64_t rs1)
{
return __builtin_riscv_sm3p0(rs1);
}
-int64_t foo2(int64_t rs1)
+uint64_t foo2(uint64_t rs1)
{
return __builtin_riscv_sm3p1(rs1);
}