File tree 1 file changed +3
-0
lines changed 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -229,9 +229,12 @@ fn test_instructions() {
229
229
assert_eq ! ( ptr_val. as_instruction( ) . unwrap( ) . get_opcode( ) , PtrToInt ) ;
230
230
assert_eq ! ( ptr. as_instruction( ) . unwrap( ) . get_opcode( ) , IntToPtr ) ;
231
231
assert_eq ! ( icmp. as_instruction( ) . unwrap( ) . get_opcode( ) , ICmp ) ;
232
+ assert_eq ! ( ptr. as_instruction( ) . unwrap( ) . get_icmp_predicate( ) , None ) ;
232
233
assert_eq ! ( icmp. as_instruction( ) . unwrap( ) . get_icmp_predicate( ) . unwrap( ) , IntPredicate :: EQ ) ;
233
234
assert_eq ! ( f32_sum. as_instruction( ) . unwrap( ) . get_opcode( ) , FAdd ) ;
234
235
assert_eq ! ( fcmp. as_instruction( ) . unwrap( ) . get_opcode( ) , FCmp ) ;
236
+ assert_eq ! ( f32_sum. as_instruction( ) . unwrap( ) . get_fcmp_predicate( ) , None ) ;
237
+ assert_eq ! ( icmp. as_instruction( ) . unwrap( ) . get_fcmp_predicate( ) , None ) ;
235
238
assert_eq ! ( fcmp. as_instruction( ) . unwrap( ) . get_fcmp_predicate( ) . unwrap( ) , FloatPredicate :: OEQ ) ;
236
239
assert_eq ! ( free_instruction. get_opcode( ) , Call ) ;
237
240
assert_eq ! ( return_instruction. get_opcode( ) , Return ) ;
You can’t perform that action at this time.
0 commit comments