Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fix licm/jump-table-entry.clif test case to work with basic blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nbp committed Jul 25, 2019
1 parent c1b9989 commit f59545d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion filetests/licm/jump-table-entry.clif
@@ -1,5 +1,4 @@
test licm

target x86_64

function %dont_hoist_jump_table_entry_during_licm() {
Expand All @@ -18,12 +17,17 @@ ebb2:
v1 = iconst.i32 -14
v8 = ifcmp_imm v1, 2
brif uge v8, ebb1
jump ebb3

ebb3:
v5 = jump_table_base.i64 jt0
v6 = jump_table_entry.i64 v1, v5, 4, jt0
v7 = iadd v5, v6
indirect_jump_table_br v7, jt0
; check: ebb2:
; nextln: v8 = ifcmp_imm.i32 v1, 2
; nextln: brif uge v8, ebb1
; nextln: jump ebb3
; check: ebb3:
; nextln: jump_table_entry.i64
}

0 comments on commit f59545d

Please sign in to comment.