summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/riscv/rvv/base/bug-1.c
blob: a8843674e31cded78a6b2f64d49a31d4cab97d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* { dg-do compile } */
/* { dg-options "-march=rv32gcv -mabi=ilp32d -O0" } */

#include "riscv_vector.h"

int
f0 ()
{
  float b;
  vfloat32m1_t c;
  vbool32_t d = __riscv_vmflt_vf_f32m1_b32 (c, b, 8);
  return 0;
}

int
f1 ()
{
  vfloat32m1_t c;
  vbool32_t d = __riscv_vmflt_vf_f32m1_b32 (c, 0, 8);
  return 0;
}

int
f2 ()
{
  vfloat32m1_t c;
  vbool32_t d = __riscv_vmflt_vf_f32m1_b32 (c, 55.55, 8);
  return 0;
}

int
f3 ()
{
  int32_t b;
  vint32m1_t c;
  vbool32_t d = __riscv_vmseq_vx_i32m1_b32 (c, b, 8);
  return 0;
}

int
f4 ()
{
  vint32m1_t c;
  vbool32_t d = __riscv_vmseq_vx_i32m1_b32 (c, 11, 8);
  return 0;
}

int
f5 ()
{
  int64_t b;
  vint64m1_t c;
  vbool64_t d = __riscv_vmseq_vx_i64m1_b64 (c, b, 8);
  return 0;
}

int
f6 ()
{
  vint64m1_t c;
  vbool64_t d = __riscv_vmseq_vx_i64m1_b64 (c, 11, 8);
  return 0;
}

int
f7 ()
{
  vint64m1_t c;
  vbool64_t d = __riscv_vmseq_vx_i64m1_b64 (c, 0xAAAA, 8);
  return 0;
}

int
f8 ()
{
  vint64m1_t c;
  vbool64_t d = __riscv_vmseq_vx_i64m1_b64 (c, 0xAAAAAAAAAAAAAA, 8);
  return 0;
}