blob: 5500f7abe67cf7f9e789b83cbe0583cbe0bac477 [file] [log] [blame]
# check that sext.b/sext.h work correctly
# mach: mcore
.include "testutils.inc"
start
# Construct -120 using bgeni+addi+sext
bgeni r2, 7
addi r2,8
sextb r2
# Construct -120 using movi+not
movi r7,119
not r7
# Compare them, they should be equal
cmpne r2,r7
jbt .L1
pass
.L1:
fail