[llvm] r237327 - Don't omit the constant when computing a cross-section relative relocation.

Andy Ayers andya at microsoft.com
Tue May 26 09:31:14 PDT 2015


We want to ensure that the bitcode expressions are properly simplified so that when assembled they produce the expected relocations.

-----Original Message-----
From: Rafael EspĂ­ndola [mailto:rafael.espindola at gmail.com] 
Sent: Monday, May 25, 2015 5:26 AM
To: Andy Ayers
Cc: llvm-commits
Subject: Re: [llvm] r237327 - Don't omit the constant when computing a cross-section relative relocation.

> +; Verify the assembler produces the expected expressions ; RUN: llc 
> +-mtriple=x86_64-pc-win32 %s -o - | FileCheck %s ; Verify the .fix 
> +data section conveys the right offsets and the right relocations ; 
> +RUN: llc -mtriple=x86_64-pc-win32 -filetype=obj %s -o - | 
> +llvm-readobj -relocations -expand-relocs -sections -section-data | 
> +FileCheck %s --check-prefix=READOBJ

Can't this be tested with llvm-mc instead of llc?

Cheers,
Rafael




More information about the llvm-commits mailing list