[PATCH] D54824: [PowerPC] [NFC] Add test cases to the ISD::BR_CC node in the instruction selection

Li Jia He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 21 21:11:38 PST 2018


HLJ2009 created this revision.
HLJ2009 added reviewers: nemanjai, echristo, hfinkel, jsji, steven.zhang.

Add the following test case for the ISD::BR_CC node in the instruction  selection

  define i64 @testi64slt(i64 %c1, i64 %c2, i64 %c3, i64 %c4, i64 %a1, i64 %a2) #0 {
  entry:
    %cmp1 = icmp eq i64 %c3, %c4
    %cmp3tmp = icmp eq i64 %c1, %c2
    %cmp3 = icmp slt i1 %cmp3tmp, %cmp1
    br i1 %cmp3, label %iftrue, label %iffalse
  iftrue:
    ret i64 %a1
  iffalse:
    ret i64 %a2
  }

The data type i64 can be replaced by i32, i64, float, double
And condition codes can be replaced by: SETEQ, SETEN, SELT, SETLE, SETGT, SETGE,

  								   SETULT, SETULE, SSETGT, and SETUGE


https://reviews.llvm.org/D54824

Files:
  llvm/test/CodeGen/PowerPC/brcond.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54824.175010.patch
Type: text/x-patch
Size: 28174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181122/6ead1037/attachment.bin>


More information about the llvm-commits mailing list