add swizzle ref
[libreriscv.git] / rv_major_opcode_1010011.mdwn
index 429a1deba16c0cb4dc01883015664d59174911ac..5e2f48d8890b8055b13908a75812bb4e9c38956b 100644 (file)
@@ -56,7 +56,7 @@ funct5  | SDHQ    | rs2    | rs1  | funct3 | rd    | opcode  | name           |
 01001   | xx      | rs2    | rs1  | yyy    | rd    | 1010011 | ?              |
 01010   | xx      | rs2    | rs1  | yyy    | rd    | 1010011 | ?              |
 01011   | xx      | xxxxx  | rs1  | yyy    | rd    | 1010011 | tb=01011       |
-01100   | xx      | rs2    | rs1  | yyy    | rd    | 1010011 | ?              |
+01100   | xx      | rs2    | rs1  | yyy    | rd    | 1010011 | **FHYPOT.xx**  |
 01101   | xx      | rs2    | rs1  | rm     | rd    | 1010011 | **FATAN2.xx**  |
 01110   | xx      | rs2    | rs1  | rm     | rd    | 1010011 | **FATAN2PI.xx**|
 01111   | xx      | rs2    | rs1  | rm     | rd    | 1010011 | **FPOW.xx**    |
@@ -104,7 +104,7 @@ No brownfield encodings available.
 
 Brownfield encodings available.
 
-## funct5 = 00100
+## funct5 = 00100 - FSGN
 
 This table uses funct3 for encoding 2-operand FP operations
 
@@ -122,7 +122,7 @@ funct5  | SDHQ    | rs2    | rs1  | funct3 | rd    | opcode  | name        |
 00100   | xx      | rs2    | rs1  | 111    | rd    | 1010011 | ?f3=111     |
 """]]
 
-## funct5 = 00101
+## funct5 = 00101 - FMIN/MAX
 
 This table uses funct3 for encoding 2-operand FP operations where the result
 register is a **floating-point** value.
@@ -149,7 +149,7 @@ Brownfield encodings available.
 
 Brownfield encodings available.
 
-## funct5 = 01000
+## funct5 = 01000 - FCVT
 
 This table uses rs2 for encoding 1-operand FP operations, using
 funct3 to specify the "rounding" mode
@@ -206,7 +206,7 @@ funct5  | SDHQ    | rs2    | rs1  | funct3 | rd    | opcode  | name          |
  5      | 2       | 5      | 5    | 3      | 5     |   7     |               |
 01011   | xx      | 00000  | rs1  | rm     | rd    | 1010011 | FSQRT.xx      |
 01011   | xx      | 00001  | rs1  | rm     | rd    | 1010011 | **FRSQRT.xx** |
-01011   | xx      | 00010  | rs1  | rm     | rd    | 1010011 | **FRCP.xx**   |
+01011   | xx      | 00010  | rs1  | rm     | rd    | 1010011 | ?             |
 01011   | xx      | 00011  | rs1  | rm     | rd    | 1010011 | **FCBRT.xx**  |
 01011   | xx      | 00100  | rs1  | rm     | rd    | 1010011 | **FEXP2.xx**  |
 01011   | xx      | 00101  | rs1  | rm     | rd    | 1010011 | **FLOG2.xx**  |
@@ -238,9 +238,9 @@ funct5  | SDHQ    | rs2    | rs1  | funct3 | rd    | opcode  | name          |
 01011   | xx      | 11111  | rs1  | rm     | rd    | 1010011 | ?             |
 """]]
 
-## funct5 = 01100 - unused
+## funct5 = 01100 - **FHYPOT**
 
-Brownfield encodings available.
+Proposed for Zftrans - FHYPOT: "sqrt(rs1 * rs1 + rs2 * rs2)"
 
 ## funct5 = 01101 - **FATAN2**
 
@@ -275,7 +275,7 @@ Brownfield encodings available.
 
 Brownfield encodings available.
 
-## funct5 = 10100
+## funct5 = 10100 - FP comparisons
 
 This table uses funct3 for encoding 2-operand FP "comparison" operations
 where the result register is an **integer**
@@ -310,7 +310,7 @@ Brownfield encodings available.
 
 Brownfield encodings available.
 
-## funct5 = 11000
+## funct5 = 11000 - FCVT
 
 This table uses rs2 for encoding 1-operand FP operations, using
 funct3 to specify the "rounding" mode
@@ -352,7 +352,7 @@ funct5  | SDHQ    | rs2    | rs1  | funct3 | rd    | opcode  | name        |
 
 Brownfield encodings available.
 
-## funct5 = 11010
+## funct5 = 11010 - FCVT
 
 This table uses rs2 for encoding 1-operand FP operations, using
 funct3 to specify the "rounding" mode
@@ -388,7 +388,7 @@ funct5  | SDHQ    | rs2    | rs1  | funct3 | rd    | opcode  | name        |
 11010   | 11      | xxxxx  | rs1  | rm     | rd    | 1010011 | rs2?        |
 """]]
 
-## funct5 = 11100
+## funct5 = 11100 - FMV, FCLASS
 
 This table uses *both* rs2 *and* funct3 for encoding 1-operand FP operations.
 
@@ -423,7 +423,7 @@ funct5| SDHQ  | rs2    | rs1  |funct3 | rd    | opcode  | name        |
 
 Brownfield encodings available.
 
-## funct5 = 11110
+## funct5 = 11110 - FMV
 
 This table uses *both* rs2 *and* funct3 for encoding 1-operand FP operations.