)]}'
{
  "commit": "9701596d821d95d4e9193d1342feab06ae597cd7",
  "tree": "a2969a398b6f9f179a9947c3fea6552d4bb80228",
  "parents": [
    "a1465c8b5b622c82c4c01107c2610abf7d27cbee"
  ],
  "author": {
    "name": "Ilya Leoshkevich",
    "email": "iii@linux.ibm.com",
    "time": "Thu Mar 16 18:22:04 2023 +0100"
  },
  "committer": {
    "name": "Thomas Huth",
    "email": "thuth@redhat.com",
    "time": "Mon Mar 20 09:32:50 2023 +0100"
  },
  "message": "target/s390x: Fix R[NOX]SBG with T\u003d1\n\nRXSBG usage in the \"filetests\" test from the wasmtime testsuite makes\ntcg_reg_alloc_op() attempt to temp_load() a TEMP_VAL_DEAD temporary,\ncausing an assertion failure:\n\n    0x01000a70:  ec14 b040 3057  rxsbg    %r1, %r4, 0xb0, 0x40, 0x30\n\n    OP after optimization and liveness analysis:\n     ---- 0000000001000a70 0000000000000004 0000000000000006\n     rotl_i64 tmp2,r4,$0x30                   dead: 1 2  pref\u003d0xffff\n     and_i64 tmp2,tmp2,$0x800000000000ffff    dead: 1  pref\u003d0xffff\n    [xor_i64 tmp3,tmp3,tmp2                   dead: 1 2  pref\u003d0xffff]\n     and_i64 cc_dst,tmp3,$0x800000000000ffff  sync: 0  dead: 0 1 2  pref\u003d0xffff\n     mov_i64 psw_addr,$0x1000a76              sync: 0  dead: 0 1  pref\u003d0xffff\n     mov_i32 cc_op,$0x6                       sync: 0  dead: 0 1  pref\u003d0xffff\n     call lookup_tb_ptr,$0x6,$1,tmp8,env      dead: 1  pref\u003dnone\n     goto_ptr tmp8                            dead: 0\n     set_label $L0\n     exit_tb $0x7fffe809d183\n\n    ../tcg/tcg.c:3865: tcg fatal error\n\nThe reason is that tmp3 does not have an initial value, which confuses\nthe register allocator. This also affects the correctness of the\nresults.\n\nFix by assigning R1 to it.\n\nExposed by commit e2e641fa3d5 (\"tcg: Change default temp lifetime to\nTEMP_TB\").\n\nFixes: d6c6372e186e (\"target-s390: Implement R[NOX]SBG\")\nSigned-off-by: Ilya Leoshkevich \u003ciii@linux.ibm.com\u003e\nReviewed-by: David Hildenbrand \u003cdavid@redhat.com\u003e\nMessage-Id: \u003c20230316172205.281369-2-iii@linux.ibm.com\u003e\nSigned-off-by: Thomas Huth \u003cthuth@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7832cf02a681ae85337bd32d9382fde5af522176",
      "old_mode": 33188,
      "old_path": "target/s390x/tcg/translate.c",
      "new_id": "6758d9f47a93d301fe8ab6d5f76c329d015665a1",
      "new_mode": 33188,
      "new_path": "target/s390x/tcg/translate.c"
    }
  ]
}
