llvm.org GIT mirror llvm / 4079bea
[JITLink] Fix some copy/paste related typos in a test case. Several X86_64_RELOC_SUBTRACTOR tests for subtrahend handling were incorrectly labeled as tests for kinds of minuend handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360160 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 1 year, 6 months ago
1 changed file(s) with 26 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
111111 Lanon_data:
112112 .quad 0x1111111111111111
113113
114 # Check X86_64_RELOC_SUBTRACTOR Quad/Long in anonymous storage with anonymous minuend
115 # Only the form "LA: .quad LA - B + C" is tested. The form "LA: .quad B - LA + C" is
116 # invalid because the minuend can not be local.
114 # Check X86_64_RELOC_SUBTRACTOR Quad/Long in anonymous storage with anonymous
115 # minuend: "LA: .quad LA - B + C". The anonymous subtrahend form
116 # "LA: .quad B - LA + C" is not tested as subtrahends are not permitted to be
117 # anonymous.
117118 #
118119 # Note: +8 offset in expression below to accounts for sizeof(Lanon_data).
119120 # jitlink-check: *{8}(section_addr(macho_reloc.o, __data) + 8) = (section_addr(macho_reloc.o, __data) + 8) - named_data + 2
154155
155156 # X86_64_RELOC_SUBTRACTOR Quad/Long in named storage with anonymous minuend
156157 #
157 # jitlink-check: *{8}minuend_quad1 = section_addr(macho_reloc.o, __data) - minuend_quad1 + 2
158 # jitlink-check: *{8}anon_minuend_quad1 = section_addr(macho_reloc.o, __data) - anon_minuend_quad1 + 2
158159 # Only the form "B: .quad LA - B + C" is tested. The form "B: .quad B - LA + C" is
159 # invalid because the minuend can not be local.
160 .globl minuend_quad1
161 .p2align 3
162 minuend_quad1:
163 .quad Lanon_data - minuend_quad1 + 2
164
165 # jitlink-check: *{4}minuend_long1 = (section_addr(macho_reloc.o, __data) - minuend_long1 + 2)[31:0]
166 .globl minuend_long1
167 .p2align 2
168 minuend_long1:
169 .long Lanon_data - minuend_long1 + 2
160 # invalid because the subtrahend can not be local.
161 .globl anon_minuend_quad1
162 .p2align 3
163 anon_minuend_quad1:
164 .quad Lanon_data - anon_minuend_quad1 + 2
165
166 # jitlink-check: *{4}anon_minuend_long1 = (section_addr(macho_reloc.o, __data) - anon_minuend_long1 + 2)[31:0]
167 .globl anon_minuend_long1
168 .p2align 2
169 anon_minuend_long1:
170 .long Lanon_data - anon_minuend_long1 + 2
170171
171172 # Check X86_64_RELOC_SUBTRACTOR Quad/Long in named storage with minuend and subtrahend.
172173 # Both forms "A: .quad A - B + C" and "A: .quad B - A + C" are tested.
173174 #
174175 # Check "A: .quad B - A + C".
175 # jitlink-check: *{8}minuend_quad2 = (named_data - minuend_quad2 + 2)
176 .globl minuend_quad2
177 .p2align 3
178 minuend_quad2:
179 .quad named_data - minuend_quad2 + 2
176 # jitlink-check: *{8}subtrahend_quad2 = (named_data - subtrahend_quad2 + 2)
177 .globl subtrahend_quad2
178 .p2align 3
179 subtrahend_quad2:
180 .quad named_data - subtrahend_quad2 + 2
180181
181182 # Check "A: .long B - A + C".
182 # jitlink-check: *{4}minuend_long2 = (named_data - minuend_long2 + 2)[31:0]
183 .globl minuend_long2
184 .p2align 2
185 minuend_long2:
186 .long named_data - minuend_long2 + 2
183 # jitlink-check: *{4}subtrahend_long2 = (named_data - subtrahend_long2 + 2)[31:0]
184 .globl subtrahend_long2
185 .p2align 2
186 subtrahend_long2:
187 .long named_data - subtrahend_long2 + 2
187188
188189 # Check "A: .quad A - B + C".
189190 # jitlink-check: *{8}minuend_quad3 = (minuend_quad3 - named_data + 2)