mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
ab043ff680
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 llvm-svn: 230794
21 lines
515 B
LLVM
21 lines
515 B
LLVM
; Test multiplication of two f128s.
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
|
|
|
|
; There is no memory form of 128-bit multiplication.
|
|
define void @f1(fp128 *%ptr, float %f2) {
|
|
; CHECK-LABEL: f1:
|
|
; CHECK: lxebr %f0, %f0
|
|
; CHECK: ld %f1, 0(%r2)
|
|
; CHECK: ld %f3, 8(%r2)
|
|
; CHECK: mxbr %f1, %f0
|
|
; CHECK: std %f1, 0(%r2)
|
|
; CHECK: std %f3, 8(%r2)
|
|
; CHECK: br %r14
|
|
%f1 = load fp128 , fp128 *%ptr
|
|
%f2x = fpext float %f2 to fp128
|
|
%diff = fmul fp128 %f1, %f2x
|
|
store fp128 %diff, fp128 *%ptr
|
|
ret void
|
|
}
|