<commit_before>#! perl -w

use Parrot::Test tests => 26;

output_is(<<CODE, <<OUTPUT, "set_i_ic");
	# XXX: Need a test for writing outside the set of available
	# registers.  Parrot doesn't check for this at the moment.
	set	I0, 0x12345678
	print	I0
	print	"\\n"
	set	I31, 0x9abcdef1
	print	I31
	print	"\\n"

	set	I1, 2147483647
	print	I1
	print	"\\n"
	set	I2, -2147483648
	print	I2
	print	"\\n"
	set	I3, 4294967295
	print	I3
	print	"\\n"
CODE
305419896
-1698898191
2147483647
-2147483648
-1
OUTPUT

output_is(<<CODE, <<OUTPUT, "set_i");
	set	I0, 0x77665544
	set	I1, I0
	print	I1
	print	"\\n"
        end
CODE
2003195204
OUTPUT

output_is(<<CODE, <<OUTPUT, "add_i");
	set	I0, 0x11223344
	add	I1, I0, I0
	print	I1
	print	"\\n"

	add	I2, I0, I1	<commit_msg>Added end to test 1.<commit_after>#! perl -w

use Parrot::Test tests => 26;

output_is(<<CODE, <<OUTPUT, "set_i_ic");
	# XXX: Need a test for writing outside the set of available
	# registers.  Parrot doesn't check for this at the moment.
	set	I0, 0x12345678
	print	I0
	print	"\\n"
	set	I31, 0x9abcdef1
	print	I31
	print	"\\n"

	set	I1, 2147483647
	print	I1
	print	"\\n"
	set	I2, -2147483648
	print	I2
	print	"\\n"
	set	I3, 4294967295
	print	I3
	print	"\\n"
        end
CODE
305419896
-1698898191
2147483647
-2147483648
-1
OUTPUT

output_is(<<CODE, <<OUTPUT, "set_i");
	set	I0, 0x77665544
	set	I1, I0
	print	I1
	print	"\\n"
        end
CODE
2003195204
OUTPUT

output_is(<<CODE, <<OUTPUT, "add_i");
	set	I0, 0x11223344
	add	I1, I0, I0
	print	I1
	print	"\\n"

	add	I2, I0, I1	
{'fraction_non_alphanumeric': 0.1236102027468934, 'fraction_numerical': 0.17854807063440156, 'mean_word_length': 3.2618384401114207, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4176037', 'n_tokens_mistral': 891, 'n_tokens_neox': 743, 'n_words': 219}