Legalize trapz/trapnz to a BB-like format.

This commit is contained in:
Nicolas B. Pierron
2019-07-09 16:02:49 +02:00
committed by GitHub
parent f11fc34066
commit 1963c223b1
5 changed files with 87 additions and 41 deletions

View File

@@ -33,6 +33,8 @@ ebb0(v1: i32):
return
; check: ebb0(v1: i32
; check: brnz v2, $(new=$EBB)
; check: jump $(trap=$EBB)
; check: $trap:
; nextln: trap user7
; check: $new:
; nextln: return
@@ -45,6 +47,8 @@ ebb0(v1: i32):
return
; check: ebb0(v1: i32
; check: brz v2, $(new=$EBB)
; check: jump $(trap=$EBB)
; check: $trap:
; nextln: trap user9
; check: $new:
; nextln: return