This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Correct handling of LSL #0 in an IT block
ClosedPublic

Authored by john.brawn on Mar 7 2017, 6:32 AM.

Details

Summary

The check for LSL #0 in an IT block was checking if operand 4 was zero, but operand 4 is the condition code operand so it was actually checking for LSLEQ. Fix this by checking operand 3, which really is the immediate operand, and add some tests.

Diff Detail

Repository
rL LLVM

Event Timeline

john.brawn created this revision.Mar 7 2017, 6:32 AM
olista01 accepted this revision.Mar 7 2017, 6:41 AM
olista01 added a subscriber: olista01.

LGTM

This revision is now accepted and ready to land.Mar 7 2017, 6:41 AM
This revision was automatically updated to reflect the committed changes.