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 61914b58c333beb53e4c7a02afe0922845a40eeb..4439f234f80dfa2b71d8b751be88ab23e552dae6 100644 |
--- a/test/cctest/test-macro-assembler-x64.cc |
+++ b/test/cctest/test-macro-assembler-x64.cc |
@@ -2657,12 +2657,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); |
@@ -2731,6 +2731,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)); |