mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	AVX-512: Add ZWORD keyword
ZWORD (512 bits) keyword is added Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 Cyrill Gorcunov
						Cyrill Gorcunov
					
				
			
			
				
	
			
			
			
						parent
						
							4d1fc3f1a0
						
					
				
				
					commit
					d4760c19b5
				
			| @@ -265,6 +265,8 @@ static const char *size_name(int size) | |||||||
|         return "oword"; |         return "oword"; | ||||||
|     case 32: |     case 32: | ||||||
|         return "yword"; |         return "yword"; | ||||||
|  |     case 64: | ||||||
|  |         return "zword"; | ||||||
|     default: |     default: | ||||||
|         return "???"; |         return "???"; | ||||||
|     } |     } | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								disasm.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								disasm.c
									
									
									
									
									
								
							| @@ -1303,6 +1303,9 @@ int32_t disasm(uint8_t *data, char *output, int outbufsize, int segsize, | |||||||
|             if (t & BITS256) |             if (t & BITS256) | ||||||
|                 slen += |                 slen += | ||||||
|                     snprintf(output + slen, outbufsize - slen, "yword "); |                     snprintf(output + slen, outbufsize - slen, "yword "); | ||||||
|  |             if (t & BITS512) | ||||||
|  |                 slen += | ||||||
|  |                     snprintf(output + slen, outbufsize - slen, "zword "); | ||||||
|             if (t & FAR) |             if (t & FAR) | ||||||
|                 slen += snprintf(output + slen, outbufsize - slen, "far "); |                 slen += snprintf(output + slen, outbufsize - slen, "far "); | ||||||
|             if (t & NEAR) |             if (t & NEAR) | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								nasm.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								nasm.h
									
									
									
									
									
								
							| @@ -1011,6 +1011,7 @@ enum special_tokens { | |||||||
|     S_TWORD, |     S_TWORD, | ||||||
|     S_WORD, |     S_WORD, | ||||||
|     S_YWORD, |     S_YWORD, | ||||||
|  |     S_ZWORD, | ||||||
|     SPECIAL_ENUM_LIMIT |     SPECIAL_ENUM_LIMIT | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										5
									
								
								parser.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								parser.c
									
									
									
									
									
								
							| @@ -660,6 +660,11 @@ is_expression: | |||||||
|                     result->oprs[operand].type |= BITS256; |                     result->oprs[operand].type |= BITS256; | ||||||
|                 setsize = 1; |                 setsize = 1; | ||||||
|                 break; |                 break; | ||||||
|  |             case S_ZWORD: | ||||||
|  |                 if (!setsize) | ||||||
|  |                     result->oprs[operand].type |= BITS512; | ||||||
|  |                 setsize = 1; | ||||||
|  |                 break; | ||||||
|             case S_TO: |             case S_TO: | ||||||
|                 result->oprs[operand].type |= TO; |                 result->oprs[operand].type |= TO; | ||||||
|                 break; |                 break; | ||||||
|   | |||||||
| @@ -72,6 +72,7 @@ to | |||||||
| tword | tword | ||||||
| word | word | ||||||
| yword | yword | ||||||
|  | zword | ||||||
|  |  | ||||||
| % TOKEN_FLOAT, 0, 0, 0 | % TOKEN_FLOAT, 0, 0, 0 | ||||||
| __infinity__ | __infinity__ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user