projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[NVPTX] Make constant vector test case endian-independent
[oota-llvm.git]
/
test
/
TableGen
/
Paste.td
1
// RUN: llvm-tblgen %s | FileCheck %s
2
3
class Instr<int i> {
4
int index = i;
5
}
6
7
multiclass Test {
8
def Vx#NAME#PS : Instr<0>;
9
def Vx#NAME#PD : Instr<1>;
10
def Vy#NAME#PS : Instr<2>;
11
def Vy#NAME#PD : Instr<3>;
12
}
13
14
defm ADD : Test;
15
defm SUB : Test;
16
17
// CHECK: VxADDPD
18
// CHECK: index = 1;
19
// CHECK: VxADDPS
20
// CHECK: index = 0;
21
22
// CHECK: VxSUBPD
23
// CHECK: index = 1;
24
// CHECK: VxSUBPS
25
// CHECK: index = 0;
26
27
// CHECK: VyADDPD
28
// CHECK: index = 3;
29
// CHECK: VyADDPS
30
// CHECK: index = 2;
31
32
// CHECK: VySUBPD
33
// CHECK: index = 3;
34
// CHECK: VySUBPS
35
// CHECK: index = 2;