• Home
  • Raw
  • Download

Lines Matching refs:yylval

52 add		{ yylval.integer = BRW_OPCODE_ADD; return ADD; }
53 addc { yylval.integer = BRW_OPCODE_ADDC; return ADDC; }
54 and { yylval.integer = BRW_OPCODE_AND; return AND; }
55 asr { yylval.integer = BRW_OPCODE_ASR; return ASR; }
56 avg { yylval.integer = BRW_OPCODE_AVG; return AVG; }
57 bfe { yylval.integer = BRW_OPCODE_BFE; return BFE; }
58 bfi1 { yylval.integer = BRW_OPCODE_BFI1; return BFI1; }
59 bfi2 { yylval.integer = BRW_OPCODE_BFI2; return BFI2; }
60 bfrev { yylval.integer = BRW_OPCODE_BFREV; return BFREV; }
61 brc { yylval.integer = BRW_OPCODE_BRC; return BRC; }
62 brd { yylval.integer = BRW_OPCODE_BRD; return BRD; }
63 break { yylval.integer = BRW_OPCODE_BREAK; return BREAK; }
64 call { yylval.integer = BRW_OPCODE_CALL; return CALL; }
65 calla { yylval.integer = BRW_OPCODE_CALLA; return CALLA; }
66 case { yylval.integer = BRW_OPCODE_CASE; return CASE; }
67 cbit { yylval.integer = BRW_OPCODE_CBIT; return CBIT; }
68 cmp { yylval.integer = BRW_OPCODE_CMP; return CMP; }
69 cmpn { yylval.integer = BRW_OPCODE_CMPN; return CMPN; }
70 cont { yylval.integer = BRW_OPCODE_CONTINUE; return CONT; }
71 csel { yylval.integer = BRW_OPCODE_CSEL; return CSEL; }
72 dim { yylval.integer = BRW_OPCODE_DIM; return DIM; }
73 do { yylval.integer = BRW_OPCODE_DO; return DO; }
74 dp2 { yylval.integer = BRW_OPCODE_DP2; return DP2; }
75 dp3 { yylval.integer = BRW_OPCODE_DP3; return DP3; }
76 dp4 { yylval.integer = BRW_OPCODE_DP4; return DP4; }
77 dph { yylval.integer = BRW_OPCODE_DPH; return DPH; }
78 else { yylval.integer = BRW_OPCODE_ELSE; return ELSE; }
79 endif { yylval.integer = BRW_OPCODE_ENDIF; return ENDIF; }
80 f16to32 { yylval.integer = BRW_OPCODE_F16TO32; return F16TO32; }
81 f32to16 { yylval.integer = BRW_OPCODE_F32TO16; return F32TO16; }
82 fbh { yylval.integer = BRW_OPCODE_FBH; return FBH; }
83 fbl { yylval.integer = BRW_OPCODE_FBL; return FBL; }
84 fork { yylval.integer = BRW_OPCODE_FORK; return FORK; }
85 frc { yylval.integer = BRW_OPCODE_FRC; return FRC; }
86 goto { yylval.integer = BRW_OPCODE_GOTO; return GOTO; }
87 halt { yylval.integer = BRW_OPCODE_HALT; return HALT; }
88 if { yylval.integer = BRW_OPCODE_IF; return IF; }
89 iff { yylval.integer = BRW_OPCODE_IFF; return IFF; }
90 illegal { yylval.integer = BRW_OPCODE_ILLEGAL; return ILLEGAL; }
91 jmpi { yylval.integer = BRW_OPCODE_JMPI; return JMPI; }
92 line { yylval.integer = BRW_OPCODE_LINE; return LINE; }
93 lrp { yylval.integer = BRW_OPCODE_LRP; return LRP; }
94 lzd { yylval.integer = BRW_OPCODE_LZD; return LZD; }
95 mac { yylval.integer = BRW_OPCODE_MAC; return MAC; }
96 mach { yylval.integer = BRW_OPCODE_MACH; return MACH; }
97 mad { yylval.integer = BRW_OPCODE_MAD; return MAD; }
98 madm { yylval.integer = BRW_OPCODE_MADM; return MADM; }
99 mov { yylval.integer = BRW_OPCODE_MOV; return MOV; }
100 movi { yylval.integer = BRW_OPCODE_MOVI; return MOVI; }
101 mul { yylval.integer = BRW_OPCODE_MUL; return MUL; }
102 mrest { yylval.integer = BRW_OPCODE_MREST; return MREST; }
103 msave { yylval.integer = BRW_OPCODE_MSAVE; return MSAVE; }
104 nenop { yylval.integer = BRW_OPCODE_NENOP; return NENOP; }
105 nop { yylval.integer = BRW_OPCODE_NOP; return NOP; }
106 not { yylval.integer = BRW_OPCODE_NOT; return NOT; }
107 or { yylval.integer = BRW_OPCODE_OR; return OR; }
108 pln { yylval.integer = BRW_OPCODE_PLN; return PLN; }
109 pop { yylval.integer = BRW_OPCODE_POP; return POP; }
110 push { yylval.integer = BRW_OPCODE_PUSH; return PUSH; }
111 ret { yylval.integer = BRW_OPCODE_RET; return RET; }
112 rndd { yylval.integer = BRW_OPCODE_RNDD; return RNDD; }
113 rnde { yylval.integer = BRW_OPCODE_RNDE; return RNDE; }
114 rndu { yylval.integer = BRW_OPCODE_RNDU; return RNDU; }
115 rndz { yylval.integer = BRW_OPCODE_RNDZ; return RNDZ; }
116 rol { yylval.integer = BRW_OPCODE_ROL; return ROL; }
117 ror { yylval.integer = BRW_OPCODE_ROR; return ROR; }
118 sad2 { yylval.integer = BRW_OPCODE_SAD2; return SAD2; }
119 sada2 { yylval.integer = BRW_OPCODE_SADA2; return SADA2; }
120 sel { yylval.integer = BRW_OPCODE_SEL; return SEL; }
121 send { yylval.integer = BRW_OPCODE_SEND; return SEND; }
122 sendc { yylval.integer = BRW_OPCODE_SENDC; return SENDC; }
123 sends { yylval.integer = BRW_OPCODE_SENDS; return SENDS; }
124 sendsc { yylval.integer = BRW_OPCODE_SENDSC; return SENDSC; }
125 shl { yylval.integer = BRW_OPCODE_SHL; return SHL; }
126 shr { yylval.integer = BRW_OPCODE_SHR; return SHR; }
127 smov { yylval.integer = BRW_OPCODE_SMOV; return SMOV; }
128 subb { yylval.integer = BRW_OPCODE_SUBB; return SUBB; }
129 wait { yylval.integer = BRW_OPCODE_WAIT; return WAIT; }
130 while { yylval.integer = BRW_OPCODE_WHILE; return WHILE; }
131 xor { yylval.integer = BRW_OPCODE_XOR; return XOR; }
134 cos { yylval.integer = BRW_MATH_FUNCTION_COS; return COS; }
135 exp { yylval.integer = BRW_MATH_FUNCTION_EXP; return EXP; }
136 fdiv { yylval.integer = BRW_MATH_FUNCTION_FDIV; return FDIV; }
137 inv { yylval.integer = BRW_MATH_FUNCTION_INV; return INV; }
138 invm { yylval.integer = GEN8_MATH_FUNCTION_INVM; return INVM; }
140 yylval.integer = BRW_MATH_FUNCTION_INT_DIV_QUOTIENT;
144 yylval.integer =
149 yylval.integer = BRW_MATH_FUNCTION_INT_DIV_REMAINDER;
152 log { yylval.integer = BRW_MATH_FUNCTION_LOG; return LOG; }
153 pow { yylval.integer = BRW_MATH_FUNCTION_POW; return POW; }
154 rsq { yylval.integer = BRW_MATH_FUNCTION_RSQ; return RSQ; }
155 rsqrtm { yylval.integer = GEN8_MATH_FUNCTION_RSQRTM; return RSQRTM; }
156 sin { yylval.integer = BRW_MATH_FUNCTION_SIN; return SIN; }
157 sqrt { yylval.integer = BRW_MATH_FUNCTION_SQRT; return SQRT; }
158 sincos { yylval.integer = BRW_MATH_FUNCTION_SINCOS; return SINCOS; }
198 yylval.integer = strtoul(yytext, NULL, 10);
206 <DOTSEL>"x" { yylval.integer = BRW_CHANNEL_X; return X; }
207 <DOTSEL>"y" { yylval.integer = BRW_CHANNEL_Y; return Y; }
208 <DOTSEL>"z" { yylval.integer = BRW_CHANNEL_Z; return Z; }
209 <DOTSEL>"w" { yylval.integer = BRW_CHANNEL_W; return W; }
211 yylval.integer = strtoul(yytext, NULL, 10);
245 <CHANNEL>"x" { yylval.integer = BRW_CHANNEL_X; return X; }
246 <CHANNEL>"y" { yylval.integer = BRW_CHANNEL_Y; return Y; }
247 <CHANNEL>"z" { yylval.integer = BRW_CHANNEL_Z; return Z; }
248 <CHANNEL>"w" { yylval.integer = BRW_CHANNEL_W; return W; }
250 yylval.integer = strtoul(yytext, NULL, 10);
258 <CHANNEL>".anyv" { yylval.integer = BRW_PREDICATE_ALIGN1_ANYV; return ANYV; }
259 <CHANNEL>".allv" { yylval.integer = BRW_PREDICATE_ALIGN1_ALLV; return ALLV; }
260 <CHANNEL>".any2h" { yylval.integer = BRW_PREDICATE_ALIGN1_ANY2H; return ANY2H; }
261 <CHANNEL>".all2h" { yylval.integer = BRW_PREDICATE_ALIGN1_ALL2H; return ALL2H; }
262 <CHANNEL>".any4h" { yylval.integer = BRW_PREDICATE_ALIGN16_ANY4H; return ANY4H; }
263 <CHANNEL>".all4h" { yylval.integer = BRW_PREDICATE_ALIGN16_ALL4H; return ALL4H; }
264 <CHANNEL>".any8h" { yylval.integer = BRW_PREDICATE_ALIGN1_ANY8H; return ANY8H; }
265 <CHANNEL>".all8h" { yylval.integer = BRW_PREDICATE_ALIGN1_ALL8H; return ALL8H; }
266 <CHANNEL>".any16h" { yylval.integer = BRW_PREDICATE_ALIGN1_ANY16H; return ANY16H; }
267 <CHANNEL>".all16h" { yylval.integer = BRW_PREDICATE_ALIGN1_ALL16H; return ALL16H; }
268 <CHANNEL>".any32h" { yylval.integer = BRW_PREDICATE_ALIGN1_ANY32H; return ANY32H; }
269 <CHANNEL>".all32h" { yylval.integer = BRW_PREDICATE_ALIGN1_ALL32H; return ALL32H; }
318 "acc"[0-9]+ { yylval.integer = atoi(yytext + 3); return ACCREG; }
327 "f"[0|1] { BEGIN(CHANNEL); yylval.integer = atoi(yytext + 1); return FLAGREG; }
331 m[0-9]+ { yylval.integer = atoi(yytext + 1); BEGIN(REG); return MSGREG; }
334 sr[0-9]+ { yylval.integer = atoi(yytext + 2); return STATEREG; }
349 yylval.integer = atoi(yytext + 1);
353 "mask"[0-9]+ { yylval.integer = atoi(yytext + 4); return MASKREG; }
356 ".e" { yylval.integer = BRW_CONDITIONAL_Z; return EQUAL; }
357 ".g" { yylval.integer = BRW_CONDITIONAL_G; return GREATER; }
358 ".ge" { yylval.integer = BRW_CONDITIONAL_GE; return GREATER_EQUAL; }
359 ".l" { yylval.integer = BRW_CONDITIONAL_L; return LESS; }
360 ".le" { yylval.integer = BRW_CONDITIONAL_LE; return LESS_EQUAL; }
361 ".ne" { yylval.integer = BRW_CONDITIONAL_NZ; return NOT_EQUAL; }
362 ".nz" { yylval.integer = BRW_CONDITIONAL_NZ; return NOT_ZERO; }
363 ".o" { yylval.integer = BRW_CONDITIONAL_O; return OVERFLOW; }
364 ".r" { yylval.integer = BRW_CONDITIONAL_R; return ROUND_INCREMENT; }
365 ".u" { yylval.integer = BRW_CONDITIONAL_U; return UNORDERED; }
366 ".z" { yylval.integer = BRW_CONDITIONAL_Z; return ZERO; }
379 yylval.llint = strtoull(yytext + 2, NULL, 16);
383 yylval.llint = strtoll(yytext, NULL, 10);
389 yylval.string = ralloc_strdup(p->mem_ctx, yytext);
391 yylval.string[yyleng - 1] = '\0';
397 yylval.string = ralloc_strdup(p->mem_ctx, yytext);