diff --git a/gas/config/tc-esp32ulp_esp32s2.c b/gas/config/tc-esp32ulp_esp32s2.c index 0ab2e328983b..ffa689ee6f86 100644 --- a/gas/config/tc-esp32ulp_esp32s2.c +++ b/gas/config/tc-esp32ulp_esp32s2.c @@ -449,7 +449,7 @@ INSTR_T esp32ulp_wr_mem_sto_esp32s2 (Expr_Node * offset) { int addr_val = EXPR_VALUE (offset); - unsigned int local_op = WR_MEM (0, 0, addr_val >> 2, 0, 0, 0, 0x2); + unsigned int local_op = WR_MEM (0, 0, addr_val >> 2, 0, 0, 0, 0x3); return conscode (gencode (local_op), Expr_Node_Gen_Reloc (offset, BFD_RELOC_ESP32S2ULP_WR_MEM)); diff --git a/gas/testsuite/gas/esp32ulp/esp32s2/compare/esp32s2ulp_st.bin b/gas/testsuite/gas/esp32ulp/esp32s2/compare/esp32s2ulp_st.bin index 091c3ddf8375..346b9a593c1a 100755 Binary files a/gas/testsuite/gas/esp32ulp/esp32s2/compare/esp32s2ulp_st.bin and b/gas/testsuite/gas/esp32ulp/esp32s2/compare/esp32s2ulp_st.bin differ diff --git a/gas/testsuite/gas/esp32ulp/esp32s2/compare/esp32s2ulp_st.lst b/gas/testsuite/gas/esp32ulp/esp32s2/compare/esp32s2ulp_st.lst index 94671ee59f4c..616c6ac78687 100644 --- a/gas/testsuite/gas/esp32ulp/esp32s2/compare/esp32s2ulp_st.lst +++ b/gas/testsuite/gas/esp32ulp/esp32s2/compare/esp32s2ulp_st.lst @@ -49,9 +49,9 @@ ESP32ULP GAS esp32s2ulp_st.s page 1 46 0064 99000062 STI R1, R2, lab1 // 99000062 47 0068 89000062 STI R1, R2, lab2 48 006c 00000040 NOP - 49 0070 00200064 STO 0x20 - 50 0074 00200064 STO offs - 51 0078 00000064 STO offs2 + 49 0070 00200066 STO 0x20 + 50 0074 00200066 STO offs + 51 0078 00000066 STO offs2 52 007c 00000040 NOP 53 0080 00000040 NOP 54 0084 00000040 NOP