Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Backport patches for MSP430 codegen. #59

Merged
merged 2 commits into from
Dec 8, 2016
Merged

Backport patches for MSP430 codegen. #59

merged 2 commits into from
Dec 8, 2016

Conversation

pftbest
Copy link

@pftbest pftbest commented Dec 8, 2016

Fixes some issues with code generation for MSP430 target.
Fixes rust-lang/rust#37829

Fix PR27500: on MSP430 the branch destination offset is measured in words, not bytes.

Summary: In addition, the branch instructions will have proper BB destinations, not offsets, like before.

Reviewers: asl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D23718

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286252 91177308-0d34-0410-b5e6-96231b3b80d8

# Conflicts:
#	lib/Target/MSP430/MSP430BranchSelector.cpp
[CodeGen] Fix result type for SMULO/UMULO legalization

On some platforms (like MSP430) the second element of the result
structure for SMULO/UMULO may have a shorter type than the one
returned by SetCC. We need to truncate it to the right type, or
else some incorrect code may be generated later on.

This fixes issue rust-lang/rust#37829

Patch by Vadzim Dambrouski!

Differential Revision: https://reviews.llvm.org/D27154

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288857 91177308-0d34-0410-b5e6-96231b3b80d8
@alexcrichton alexcrichton merged commit d7342a9 into rust-lang:rust-llvm-2016-10-29 Dec 8, 2016
@alexcrichton
Copy link
Member

Thanks!

@pftbest pftbest deleted the msp430_backport branch December 8, 2016 07:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants