Index: test/cctest/test-macro-assembler-x64.cc |
diff --git a/test/cctest/test-macro-assembler-x64.cc b/test/cctest/test-macro-assembler-x64.cc |
index 8262ab6127d32856f2ae02bbf6e4485b11a499b6..3d28fc0a03335dd0f08d28a1eb9bd59237fc2156 100644 |
--- a/test/cctest/test-macro-assembler-x64.cc |
+++ b/test/cctest/test-macro-assembler-x64.cc |
@@ -2704,12 +2704,12 @@ TEST(LoadAndStoreWithRepresentation) { |
__ movq(rax, Immediate(1)); // Test number. |
__ movq(Operand(rsp, 0 * kPointerSize), Immediate(0)); |
__ movq(rcx, Immediate(-1)); |
- __ Store(Operand(rsp, 0 * kPointerSize), rcx, Representation::Byte()); |
+ __ Store(Operand(rsp, 0 * kPointerSize), rcx, Representation::UInteger8()); |
__ movq(rcx, Operand(rsp, 0 * kPointerSize)); |
__ movl(rdx, Immediate(255)); |
__ cmpq(rcx, rdx); |
__ j(not_equal, &exit); |
- __ Load(rdx, Operand(rsp, 0 * kPointerSize), Representation::Byte()); |
+ __ Load(rdx, Operand(rsp, 0 * kPointerSize), Representation::UInteger8()); |
__ cmpq(rcx, rdx); |
__ j(not_equal, &exit); |
@@ -2778,6 +2778,47 @@ TEST(LoadAndStoreWithRepresentation) { |
__ cmpq(rcx, rdx); |
__ j(not_equal, &exit); |
+ // Test 7. |
+ __ movq(rax, Immediate(7)); // Test number. |
+ __ movq(Operand(rsp, 0 * kPointerSize), Immediate(0)); |
+ __ movq(rcx, Immediate(-1)); |
+ __ Store(Operand(rsp, 0 * kPointerSize), rcx, Representation::Integer8()); |
+ __ movq(rcx, Operand(rsp, 0 * kPointerSize)); |
+ __ movl(rdx, Immediate(255)); |
+ __ cmpq(rcx, rdx); |
+ __ j(not_equal, &exit); |
+ __ Load(rdx, Operand(rsp, 0 * kPointerSize), Representation::Integer8()); |
+ __ movq(rcx, Immediate(-1)); |
+ __ cmpq(rcx, rdx); |
+ __ j(not_equal, &exit); |
+ |
+ // Test 8. |
+ __ movq(rax, Immediate(8)); // Test number. |
+ __ movq(Operand(rsp, 0 * kPointerSize), Immediate(0)); |
+ __ movq(rcx, Immediate(-1)); |
+ __ Store(Operand(rsp, 0 * kPointerSize), rcx, Representation::Integer16()); |
+ __ movq(rcx, Operand(rsp, 0 * kPointerSize)); |
+ __ movl(rdx, Immediate(65535)); |
+ __ cmpq(rcx, rdx); |
+ __ j(not_equal, &exit); |
+ __ Load(rdx, Operand(rsp, 0 * kPointerSize), Representation::Integer16()); |
+ __ movq(rcx, Immediate(-1)); |
+ __ cmpq(rcx, rdx); |
+ __ j(not_equal, &exit); |
+ |
+ // Test 9. |
+ __ movq(rax, Immediate(9)); // Test number. |
+ __ movq(Operand(rsp, 0 * kPointerSize), Immediate(0)); |
+ __ movq(rcx, Immediate(-1)); |
+ __ Store(Operand(rsp, 0 * kPointerSize), rcx, Representation::UInteger16()); |
+ __ movq(rcx, Operand(rsp, 0 * kPointerSize)); |
+ __ movl(rdx, Immediate(65535)); |
+ __ cmpq(rcx, rdx); |
+ __ j(not_equal, &exit); |
+ __ Load(rdx, Operand(rsp, 0 * kPointerSize), Representation::UInteger16()); |
+ __ cmpq(rcx, rdx); |
+ __ j(not_equal, &exit); |
+ |
__ xor_(rax, rax); // Success. |
__ bind(&exit); |
__ addq(rsp, Immediate(1 * kPointerSize)); |